So, the problem is that im trying to enable a script, but it doesnt...
Script (LOCALSCRIPT):
script.Parent.MouseButton1Click:Connect(function()
**game.Workspace["The castle dungeon"].GuardF.Script.Disabled = false**
script.Parent.Parent.Parent.HackyMouseMovementStuff.TextButton:Destroy()
end)
Script that i want to enable:
local hum = script.Parent.Humanoid
local Animation = Instance.new("Animation")
local plyr = game:GetService('Players').LocalPlayer
Animation.AnimationId = "rbxassetid://9320074412"
print("Signal Successful!")
local AnimationTrack = script.Parent.Humanoid:LoadAnimation(Animation)
AnimationTrack.Priority = Enum.AnimationPriority.Action
AnimationTrack.Looped = false
AnimationTrack:Play()
wait(0.6)
script.Parent:Destroy()
Can anyone please help?

6 comments
is your script enable from the start. also, is it meant to be used more then once?
Well, my local script enables from a button press, and it doesnt enable from the start,
Are both a local script?
No, the animation script is a normal script, the disable script is a local script.!
LocalPlayer can only be used in Localscripts
oh thanks :D