Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script under a part does not work in online mode?

Asked by 6 years ago
Edited 6 years ago

I have a trampoline that works in studio but doesn't let you jump on it in regular online mode. The game is filtering enabled and the trampoline is in the workspace with the script directly under it along with a configurations folder the has a value for the jump force.

I appreciate any help with this.

Debounce = false

script.Parent.Touched:Connect(function(H)
    local Human = H.Parent:FindFirstChildOfClass("Humanoid")
    if Human and not Debounce then
        Debounce = true
            H.Parent.HumanoidRootPart.Velocity = Vector3.new(0,script.Parent.Configurations.JumpForce.Value,0)      
        delay(3, function()
            Debounce = false
        end)
    end
end)
0
why not just set the velocity with one line instead of making a complicated script? ax_gold 360 — 6y
0
Nothing complicated about it. I need to have a debounce so the players don't jump continuously and I check if it's a humanoid actually touching the part. None of that affects the issue I am having. My issue is getting it to work in online mode right now it's only working in studio. Zeustice 41 — 6y
0
Add some prints? Zititus 40 — 6y

Answer this question