How do i make this Script FE Compatible?
bin = script.Parent
me = script.Parent.Parent.Parent
enabled = true
function onButton1Down(mouse)
if not enabled then
return
end
function CreateTag(Attacker, VictimHumanoid)
for i, v in pairs(VictimHumanoid:GetChildren()) do
if v.Name == "creator" then
v:Remove()
end
end
Tag = Instance.new("ObjectValue")
Tag.Parent = VictimHumanoid
Tag.Name = "creator"
Tag.Value = Attacker
end
local player = game.Players.LocalPlayer
if player == nil then return end
enabled = false
Run = game:GetService("RunService")
game:GetService("Chat"):Chat(me.Character.Head, "Lightning Style:Lightning Spread!")
x = Instance.new("Part")
x.BrickColor = BrickColor.new("Cyan")
x.Name = "Water"
x.Transparency = 0.4
x.Reflectance = 0
x.Size = Vector3.new(1, 1, 1)
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.Shape = "Ball"
x.Name = me.Name
x.Anchored = true
x.CanCollide = true
y = Instance.new("BodyVelocity")
z = Instance.new("CylinderMesh")
z.Scale = Vector3.new(10,0,10)
z.Parent = x
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.velocity = me.Character.Torso.CFrame.lookVector*120
x.Parent = Workspace
y.Parent = x
x.CFrame = me.Character.Torso.CFrame*CFrame.new(0, -3, 0)
for i = 3, 50 do
z.Scale = z.Scale + Vector3.new(3, 0.01, 3)
wait()
end
for i = 1 , 15 do
for u, c in pairs(workspace:GetChildren()) do
if c.Name ~= me.Name then
h = c:findFirstChild("Humanoid")
t = c:findFirstChild("Torso")
if h ~= nil and t ~= nil then
if (x.Position-t.Position).magnitude <= 70 then
h.Sit = true
t.CFrame = t.CFrame * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
t.Velocity = x.CFrame.lookVector * 0 + Vector3.new(0, 0, 0)
if i < 29 then
h:TakeDamage(2.5)
CreateTag(Me, h)
end
end
end
end
end
wait()
end
x:remove()
wait(25)
enabled = true
end
enabled = true
function onS(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onS)