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

Works perfectly in Studio then doesn't work one bit in Server?

Asked by
Nidoxs 190
8 years ago

It's an escape pod, that takes off after a button press but it wont work on Server Mode when It works PERFECTLY on Studio the script is Server Script and is inside a ClickDetector inside of a Part inside of a model in Workspace! Help please! :

local a = script.Parent.Parent
local Eng = a.Parent.Engine

debounce = false


function fly()
    if debounce == false then
        debounce = true
        Eng.PowerUp:Play()
        Eng.PowerUp2:Play()
        wait(1)
        Eng.Countdown:Play()
        wait(9.977)
        Eng.Ignite:Play()
        Eng.Fire.Enabled = true
        Eng.ParticleEmitter.Enabled = true
        Eng.BodyVelocity.Velocity = Vector3.new(0,150,0)
    end
end

script.Parent.MouseClick:connect(fly)
0
Have you tried putting it in a localscript so it runs client rather than server? Smunkey 95 — 8y
0
^Also are you getting any error messages in the output? TurboFusion 1821 — 8y
0
Do you have FilteringEnabled? User#6546 35 — 8y

Answer this question