Advertisement
Leezyy

Error

Jun 26th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. local rp = game:GetService("ReplicatedStorage")
  2. local Player = game.Players.LocalPlayer
  3. local Shift = rp:WaitForChild("Shift")
  4.  
  5. local TweenService = game:GetService("TweenService")
  6.  
  7. function Transformation(Character,Folder)
  8. local Lightning = script.Lightning:Clone()
  9. Lightning.CFrame = Character:WaitForChild("HumanoidRootPart").CFrame
  10. Lightning.Orientation = Lightning.Orientation + Vector3.new(-90, 90.46, 0)
  11. Lightning.Anchored = true
  12. Lightning.Parent = Folder
  13.  
  14. local Lgoal = {}
  15. Lgoal.Size = Lightning.Size + Vector3.new(40,10,10)
  16. Lgoal.CFrame = Lightning.CFrame * CFrame.new(-17,42,-4)
  17. local Linfo = TweenInfo.new(1)
  18. local Ltween = TweenService:Create(Lightning,Linfo,Lgoal)
  19. Ltween:Play()
  20.  
  21. local TitanExplo = script.TitanExplo:Clone()
  22. TitanExplo.CFrame = Character:WaitForChild("HumanoidRootPart").CFrame
  23. TitanExplo.Parent = Folder
  24.  
  25. local Tgoal = {}
  26. Tgoal.Size = TitanExplo.Size + Vector3.new(40,10,10)
  27. Tgoal.CFrame = TitanExplo.CFrame * CFrame.new(-17,0,0)
  28. local Tinfo = TweenInfo.new(
  29. 2.5,
  30. Enum.EasingStyle.Bounce,
  31. Enum.EasingDirection.In,
  32. 0,
  33. false,
  34. 0
  35.  
  36. )
  37. local properties = {
  38.  
  39. Size = Vector3.new(28,31,28),
  40. Transparency = 1
  41. }
  42. local Ttween = TweenService:Create(TitanExplo,Tinfo,Tgoal)
  43. Ttween:Play()
  44. wait(1)
  45.  
  46. for i = 1,3,1 do
  47. local Wave = script.Wave:Clone()
  48. Wave.CFrame = Character:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0,-2.5,0)
  49. Wave.Parent = Folder
  50.  
  51. local Wgoal = {}
  52. Wgoal.Size = Wave.Size + Vector3.new(50,5,50)
  53. Wgoal.Transparency = Wave.Transparency + 1
  54. Wgoal.CFrame = Wave.CFrame * CFrame.new(0,3,0)
  55. local Winfo = TweenInfo.new(1)
  56. local Wtween = TweenService:Create(Wave,Winfo,Wgoal)
  57. Wtween:Play()
  58. wait(.5)
  59. end
  60.  
  61. Shift.OnServerEvent:Connect(function(Player)
  62. local character = Player.Character
  63.  
  64. local Folder = Instance.new("Folder", workspace)
  65. Folder.Name = "Shift Meshes"
  66.  
  67. Transformation(character,Folder)
  68.  
  69. end)
  70.  
  71.  
  72. removeMeshes(Folder)
  73. end
  74.  
  75. print("Half Way Done")
  76.  
  77. function removeMeshes(Folder)
  78. for i, v in pairs(Folder:GetChildren()) do
  79. local Goal ={}
  80. Goal.Transparency = v.Transparency + 1
  81.  
  82. local Info = TweenInfo.new(1)
  83.  
  84. local Tween = TweenService:Create(v,Info,Goal)
  85. Tween:Play()
  86.  
  87. end
  88. wait(1)
  89. Folder:Destroy()
  90. end
  91. function Transformation(Character,Folder)
  92.  
  93. local Humanoid = Character:WaitForChild("Humanoid")
  94. local plr = game.Players:FindFirstChild(Character.Name)
  95.  
  96.  
  97. local BodyColors = Instance.new("BodyColors",plr.Character)
  98. BodyColors.HeadColor = BrickColor.new("Dark orange")
  99. BodyColors.HeadColor3 = Color3.fromRGB(160, 95, 53)
  100. BodyColors.LeftArmColor = BrickColor.new("Dark orange")
  101. BodyColors.LeftArmColor3 = Color3.fromRGB(160, 95, 53)
  102. BodyColors.LeftLegColor = BrickColor.new("Dark orange")
  103. BodyColors.LeftLegColor3 = Color3.fromRGB(160, 95, 53)
  104. BodyColors.RightArmColor = BrickColor.new("Dark orange")
  105. BodyColors.RightArmColor3 = Color3.fromRGB(160, 95, 53)
  106. BodyColors.RightLegColor = BrickColor.new("Dark orange")
  107. BodyColors.RightLegColor3 = Color3.fromRGB(160, 95, 53)
  108. BodyColors.TorsoColor = BrickColor.new("Dark orange")
  109. BodyColors.TorsoColor3 = Color3.fromRGB(160, 95, 53)
  110. wait(3)
  111. plr.Character.Head.face.Texture = "rbxassetid://2835138588"
  112.  
  113. for i,v in pairs(Humanoid:GetChildren()) do
  114. if v.ClassName == "NumberValue" then
  115. local Goal = {}
  116. Goal.Value = v.Value * 3
  117.  
  118. local Info = TweenInfo.new(1)
  119.  
  120. local Tween = TweenService:Create(v,Info,Goal)
  121. Tween:Play()
  122.  
  123.  
  124. end
  125. end
  126. end
  127.  
  128. Shift.OnServerEvent:Connect(function(Player)
  129. local character = Player.Character
  130.  
  131. local Folder = Instance.new("Folder", workspace)
  132. Folder.Name = "Shift Meshes"
  133.  
  134. Transformation(character,Folder)
  135. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement