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

How do i make this Script FE Compatible?

Asked by 4 years ago
bin = script.Parent


enabled = true

function onButton1Down(mouse)

end

if not enabled then
        return
    end

    local char = script.Parent.Parent
    local player = game.Players:FindFirstChild(char.Name)
    if player == nil then return end
     enabled = false
        local RandomNumber = math.random(game.Workspace.EXPRate.MinEXP.Value,game.Workspace.EXPRate.MaxEXP.Value)
        player.stats.XP.Value = player.stats.XP.Value - RandomNumber
        player.stats.Chakra.Value = player.stats.Chakra.Value - 40
        game:GetService("Chat"):Chat(player.Character.Head, "Boil Release: Skilled Mist!")
        local animTrack = player.Character.Humanoid:LoadAnimation(script.Parent.Handsigns)
        animTrack:Play()
        wait(0.7)
        script.Parent.Jutsu:Play()
        local BV = Instance.new("BodyAngularVelocity")
        BV.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
        BV.angularvelocity = Vector3.new(0,9.4,0)
        BV.Parent = player.Character.Torso
        for i = 1,40 do
       local Mist = Instance.new("Part")
        Mist.BrickColor = BrickColor.new("Mid gray")
        Mist.FormFactor = "Custom"
        Mist.Size = Vector3.new(5.8, 4.4, 3.4)
        Mist.TopSurface = "Smooth"
        Mist.BottomSurface = "Smooth"
        Mist.Shape = "Block"
        Mist.Name = ("Mist")
        Mist.CanCollide = false
        Mist.Transparency = 0.3
        Mist.Parent = game.Workspace
        Mist.CFrame = player.Character.Torso.CFrame*CFrame.new(0, 0, -8) -- orig -12
       local MistMesh = script.Mesh:Clone()
        MistMesh.Parent = Mist
       local fd = script.Firedamage:clone()
        fd.Disabled = false
        fd.Parent = Mist
        local rm = script.Removal:Clone()
        rm.Disabled = false
        rm.Parent = Mist
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = player.Character.Torso.CFrame.lookVector*2 --Change the number here for the speed of the jutsu.
        y.Parent = Mist
        wait(0.03)

        BV:Destroy()
        game.Debris:AddItem(Mist, 6)
wait(6)
enabled = true
end

bin.Activated:connect(onButton1Down)
0
You only need to worry about Filtering Enabled when communicating between server and client. ForeverBrown 356 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

If this is a server script its already FE compatible but if its a local script use a remote event

Ad

Answer this question