Advertisement
Guest User

Goro Script

a guest
Dec 7th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2.  
  3. script.Parent.Move.OnServerEvent:Connect(function(Player, aim)
  4. local char = Player.Character
  5.  
  6. local model = game.Lighting.Fruits.Goro.GoroPillar
  7. local p = model:Clone()
  8. p.Parent = game.Workspace
  9. p:SetPrimaryPartCFrame(CFrame.new(aim))
  10.  
  11. local pillar = p.Pillar
  12. pillar.Transparency = 1
  13. local r = p.Rocks:GetChildren()
  14. for x = 1,#r do
  15. if r[x].Name == "Part" then
  16. local rock = r[x]
  17. rock.Transparency = 1
  18. rock.Size = Vector3.new(1,1,1)
  19. end
  20. end
  21.  
  22.  
  23. local cloud = p.Clouds:GetChildren()
  24. for x = 1,#cloud do
  25. if cloud[x].Name == "Part" then
  26. local cld = cloud[x]
  27. cld.Size = Vector3.new(6.5,6.5,6.5)
  28. cld.Transparency = .9
  29. local Info = TweenInfo.new(.5,Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false,.2)
  30. local Goal = {Size = Vector3.new(15,15,15),Transparency = 0}
  31. local Tween = TweenService:Create(cld, Info, Goal)
  32. Tween:Play()
  33. end
  34. end
  35. wait(.3)
  36. pillar.Transparency = 0
  37. if script.Parent.Shake.Value == false then
  38. script.Parent.Shake.Value = true
  39. elseif script.Parent.Shake.Value == true then
  40. script.Parent.Shake.Value = false
  41. end
  42.  
  43. spawn(function()
  44. for i =1,15 do
  45. wait()
  46. local rp = Instance.new("Part", game.Workspace)
  47. rp.Anchored = false
  48. rp.CanCollide = false
  49. rp.CFrame = p.Middle.CFrame
  50. rp.Size = Vector3.new(3,3,3)
  51. rp.TopSurface = "Smooth"
  52. rp.BottomSurface = "Smooth"
  53. rp.Material = "Slate"
  54. rp.Velocity = Vector3.new(math.random(-10,10)*10,math.random(-10,10)*10,math.random(-10,10)*10)
  55. rp.Transparency = rp.Transparency +0.1
  56. spawn(function()
  57. wait(.2)
  58. rp.CanCollide = true
  59. wait(1.5)
  60. rp.CanCollide = false
  61. end)
  62.  
  63. end
  64. end)
  65.  
  66. for x = 1,#r do
  67. if r[x].Name == "Part" then
  68. local rocks = r[x]
  69. local Info = TweenInfo.new(.3,Enum.EasingStyle.Quad, Enum.EasingDirection.Out,0, false, .1)
  70. local Goal = {Size = Vector3.new(6, 6, 6), Transparency = 0}
  71. local Tween = TweenService:Create(rocks, Info, Goal)
  72. Tween:Play()
  73.  
  74. end
  75. end
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement