Advertisement
SxScripting

Fire Flight Server Script

Jul 24th, 2022
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. local RS = game:GetService("ReplicatedStorage")
  2. local RunService = game:GetService("RunService")
  3. local Debounce = {}
  4. local FlameTable = {}
  5. local Debs = false
  6.  
  7. local function FireTransportRemote(Player)
  8. if Debounce[Player] then return end
  9. Debounce[Player] = true
  10.  
  11. local Character = Player.Character
  12.  
  13. if FlameTable[#FlameTable] and Debs then
  14. for i,v in pairs(FlameTable) do
  15. v:Destroy()
  16. FlameTable[i] = nil
  17. end
  18. Character:WaitForChild("Left Leg").Transparency = 0
  19. Character:WaitForChild("Right Leg").Transparency = 0
  20. Debs = false
  21. else
  22. for Index,Value in pairs(RS.Effects:GetChildren()) do
  23. local NewEffect = Value:Clone()
  24. FlameTable[Index] = NewEffect
  25. if Index == 1 then
  26. FlameTable[Index].Parent = Character:WaitForChild("Left Leg")
  27. print(Index)
  28. else
  29. FlameTable[Index].Parent = Character:WaitForChild("Right Leg")
  30. print("RAN2")
  31. end
  32. end
  33. Character:WaitForChild("Left Leg").Transparency = 1
  34. Character:WaitForChild("Right Leg").Transparency = 1
  35. Debs = true
  36. end
  37.  
  38. Debounce[Player] = nil
  39. end
  40.  
  41. RS.getFireTrans.OnServerEvent:Connect(FireTransportRemote)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement