Advertisement
Anukun_Lucifer

Transform Skill Script

Oct 15th, 2022
4,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.51 KB | Gaming | 0 0
  1. local transform = game.ReplicatedStorage.TFRemoteEvent
  2. transform.OnServerEvent:Connect(function(Plr)
  3.     local chr = Plr.Character
  4.     local mouse = Plr:GetMouse()
  5.     local hmnrp = chr:WaitForChild("HumanoidRootPart")
  6.     local hmn = chr:WaitForChild("Humanoid")
  7.    
  8.     local anim = Instance.new("Animation")
  9.     anim.AnimationId = "rbxassetid://11269866531"
  10.     local playanim = hmn:LoadAnimation(anim)
  11.     playanim:Play()
  12.    
  13.     for i , v in pairs(chr:GetDescendants()) do
  14.         if v:IsA("Accessory") then
  15.             v:Destroy()
  16.         end
  17.     end
  18.    
  19.     local tfsound = script.TFSound
  20.     tfsound.Parent = hmnrp
  21.     tfsound:Play()
  22.    
  23.     local hair = script.Hair:Clone()
  24.     hair.Parent = chr.Head
  25.     hair.CFrame = chr.Head.CFrame * CFrame.new(0,0,0)
  26.     hair.Size = Vector3.new(2.54, 3.023, 2.689)
  27.     local weldhair = Instance.new("Weld" ,hair)
  28.     weldhair.Part0 = chr.Head
  29.     weldhair.Part1 = hair
  30.     weldhair.C0 = CFrame.new(0,1,0.5) * CFrame.Angles(0,math.rad(180),0)
  31.    
  32.     local explosion = script.Beam:Clone()
  33.     explosion.Parent = hmnrp
  34.     explosion.Position = hmnrp.Position
  35.     game:GetService("TweenService"):Create(explosion,TweenInfo.new(1),{Size = Vector3.new(17.9,17.9,17.9)}):Play()
  36.     game:GetService("TweenService"):Create(explosion,TweenInfo.new(1),{Transparency = 1}):Play()
  37.     explosion:Destroy(wait(1))
  38.    
  39.     local aura = script.Aura:Clone()
  40.     aura.Parent = chr.HumanoidRootPart
  41.     aura.CFrame = chr.HumanoidRootPart.CFrame * CFrame.new(0,0,0)
  42.     local weldaura = Instance.new("Weld" ,aura)
  43.     weldaura.Part0 = chr.HumanoidRootPart
  44.     weldaura.Part1 = aura
  45.    
  46.     hmn.WalkSpeed = 50
  47. end)
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement