This is my Script
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local GreenPlasma = game.Lighting.GreenPlasma
local copy = GreenPlasma:Clone()
local toggle = false
local pcoins = player:WaitForChild("leaderstats"):WaitForChild("Xp")
mouse.KeyDown:connect(function(key)
script.Disabled = true
if pcoins.Value <= 320 then
script.Disabled = false
end
if not toggle and key == "y" then
player.Character.Humanoid.WalkSpeed = 0
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://01507595343"
local AtcPlay = player.Character.Humanoid:LoadAnimation(animation)
AtcPlay:Play()
wait(1)
player.Character.Humanoid.WalkSpeed = 24
copy.Parent = game.Players.LocalPlayer.Character
toggle = true
wait(5)
elseif toggle == true and key == "y" then
player.Character.Humanoid.WalkSpeed = 16
copy.Parent = game.Lighting
toggle = false
end
end)
The script from line 9 to 11 is to activate the script only when the player was with xp 320 but it is not working

4 comments
vlw por me informar
traduze for Brazilian
Its work but The GreenPlasma is invicible
Im deleted hum and paste player.Character.Humanoid and this work