Profile Picture

YoFro0

Reputation: 0 [rate]

Joined: Aug, 2023

Last online:

Etc

Send Message

Threads List
Possible Alts

Activity Feed

Created a new thread : [HELP] How do i detect when a part moves over a certain Position


In a small game im making script for (link below), theres a gamble machine where you drop a ball from a moving part to get it into a section to get double the points spent.

I've made a way for it to teleport the ball into the win section, for some reason the teleport only works when you drop the ball onto certain pegs. I'm not sure why and its really confusing.

 

game: https://www.roblox.com/games/13003664143/PROJECT-SUBMUS-ACCUDO-REBOOTED

 

local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
local Window = Library.CreateLib("Project Sumbus Thing", "DarkTheme")

-- Gamble Machine --
local Tab = Window:NewTab("Gamble Machine")
local Section = Tab:NewSection("Do Gamble")

Section:NewButton("ButtonText", "ButtonInfo", function()
    local clickdetector = game.Workspace.Lobby.Interactables.Jechinko.Panel["5"].ClickDetector --amount of points where number is. 5, 10, 50, 100, 500, 1000

    fireclickdetector(clickdetector)
    wait(0.5)
    local Ball = game.Workspace.Lobby.Interactables.Jechinko.[ROBLOX USERNAME HERE].Part
    Ball.Position = Vector3.new(66.4798, 125.519, -1816.39)
end)