Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- script.Parent.Move.OnServerEvent:Connect(function(Player, aim)
- local char = Player.Character
- local model = game.Lighting.Fruits.Goro.GoroPillar
- local p = model:Clone()
- p.Parent = game.Workspace
- p:SetPrimaryPartCFrame(CFrame.new(aim))
- local pillar = p.Pillar
- pillar.Transparency = 1
- local r = p.Rocks:GetChildren()
- for x = 1,#r do
- if r[x].Name == "Part" then
- local rock = r[x]
- rock.Transparency = 1
- rock.Size = Vector3.new(1,1,1)
- end
- end
- local cloud = p.Clouds:GetChildren()
- for x = 1,#cloud do
- if cloud[x].Name == "Part" then
- local cld = cloud[x]
- cld.Size = Vector3.new(6.5,6.5,6.5)
- cld.Transparency = .9
- local Info = TweenInfo.new(.5,Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false,.2)
- local Goal = {Size = Vector3.new(15,15,15),Transparency = 0}
- local Tween = TweenService:Create(cld, Info, Goal)
- Tween:Play()
- end
- end
- wait(.3)
- pillar.Transparency = 0
- if script.Parent.Shake.Value == false then
- script.Parent.Shake.Value = true
- elseif script.Parent.Shake.Value == true then
- script.Parent.Shake.Value = false
- end
- spawn(function()
- for i =1,15 do
- wait()
- local rp = Instance.new("Part", game.Workspace)
- rp.Anchored = false
- rp.CanCollide = false
- rp.CFrame = p.Middle.CFrame
- rp.Size = Vector3.new(3,3,3)
- rp.TopSurface = "Smooth"
- rp.BottomSurface = "Smooth"
- rp.Material = "Slate"
- rp.Velocity = Vector3.new(math.random(-10,10)*10,math.random(-10,10)*10,math.random(-10,10)*10)
- rp.Transparency = rp.Transparency +0.1
- spawn(function()
- wait(.2)
- rp.CanCollide = true
- wait(1.5)
- rp.CanCollide = false
- end)
- end
- end)
- for x = 1,#r do
- if r[x].Name == "Part" then
- local rocks = r[x]
- local Info = TweenInfo.new(.3,Enum.EasingStyle.Quad, Enum.EasingDirection.Out,0, false, .1)
- local Goal = {Size = Vector3.new(6, 6, 6), Transparency = 0}
- local Tween = TweenService:Create(rocks, Info, Goal)
- Tween:Play()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement