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

My scripts work for me, but nobody else in Team Create, any fixes to this?

Asked by 4 years ago

Hey guys, so I asked a similar question a few days ago but never got a response. So I do a Team Create with some friends for our game, and my scripts work perfectly for me, but when they test it, it just doesn't work. They say there's nothing extra in output and nothing at all happens. Is there a reason for this? Here's an example of a script.

local isAnimating = false

script.Parent.Equipped:Connect(function(Mouse)
    Mouse.Button1Down:Connect(function()
        local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
        if isAnimating == false then
            animation:Play()
            script.Parent.StickDamage.Disabled = false
            isAnimating = true
            wait(1)
            script.Parent.StickDamage.Disabled = true
            isAnimating = false
        end
    end)
end)

0
Where is the local script located? Geobloxia 251 — 4y
0
It's located directly in my tool in StarterPack, and it replicates to the player just fine xIshFudge 84 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You need to commit the draft. It's a new update, here's how. 1: Open View>Drafts 2:Right click whatever script that has been changed you'd like to commit to. 3:Commit Draft.

0
oh my god man, thank you so much, real lifesaver, seriously xIshFudge 84 — 4y
0
No problem! pengalu200 65 — 3y
Ad

Answer this question