script.Parent.RemoteEvent.OnServerEvent:connect(function(player, arguments)
while true do
wait(45)
local char = script.Parent --the npc
local hum = char:WaitForChild("Humanoid") --the npc's humanoid
local animation = hum:LoadAnimation(script.Animation)
local HP = script.Parent.Humanoid.WalkSpeed
wait()
wait(.1)
animation:Play()
wait(1)
local dust = Instance.new("Part")
dust.Transparency = 0.2
dust.Name = "Snap"
dust.Size = Vector3.new (90,90,90)
dust.Anchored = true
dust.CanCollide = false
dust.Parent = game.Workspace
dust.Material = "Neon"
dust.Color = Color3.new (180, 110, 255)
local bang = Instance.new ("Sound")
bang.SoundId = "rbxassetid://1421442974"
bang.Volume = 10
bang.Looped = false
bang.Parent = game.Workspace
local mesh = Instance.new ("SpecialMesh")
mesh.MeshType = ("Sphere")
mesh.Parent = dust
spawn(function()
while true do
wait()
mesh.Scale = mesh.Scale + Vector3.new(.1,.1,.1)
dust.Transparency = dust.Transparency + 0.005
end
end)
game.Debris:AddItem(dust,7)
game.Debris:AddItem(bang,7)
dust.Touched:connect((function(hit)
wait()
human = hit.Parent:FindFirstChild("Humanoid")
if human ~= nil then
local bv = Instance.new("BodyVelocity")
bv.maxForce = Vector3.new(1e990, 1e990, 1e990)
bv.Velocity = Vector3.new (0,200,0)
bv.Parent = human.Parent.Head
game:GetService("Debris"):AddItem(bv, 0.05)
human.PlatformStand = true
wait(1)
human.PlatformStand = false
wait(5)
dust:Destroy()
end
end))
wait()
game.Workspace.Sound.Playing = true
end
end)
i dont know what needs to be changed in this so its FE compatible any help?

3 comments
Try putting the RemoteEvent in ReplicatedStorage
did not work
Connect not connect, MaxForce not maxForce