Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p=game.Players.LocalPlayer
- local char=p.Character or p.CharacterAdded:wait()
- local hrp=char.HumanoidRootPart
- local hum=char:FindFirstChildOfClass("Humanoid")
- local colour,angle=nil,0
- local part=Instance.new("Part",hrp)
- part.Position=hrp.Position
- part.CanCollide=false
- part.Size=Vector3.new(10, 10, 10)
- part.Anchored=true
- part.Transparency=.5
- colour=part.BrickColor.Color
- p.Chatted:Connect(function(msg)
- if string.sub(msg,1,6) == ":size " then
- local num=tonumber(string.sub(msg, 7))
- if num <= 50 then
- spawn(function()
- for i=1,10 do
- part.Size=part.Size:Lerp(Vector3.new(num,num,num), i/10)
- wait(.2)
- end
- end)
- end
- end
- end)
- spawn(function()
- while part and hum.Health > 0 do
- wait(.1)
- angle=angle+.1
- part.CFrame=hrp.CFrame*CFrame.Angles(0, math.rad(angle), 0)
- spawn(function()
- for i=1,10 do
- colour=colour:lerp(Color3.new(math.random(255)/255, math.random(255)/255, math.random(255)/255), i/10)
- part.BrickColor=BrickColor.new(colour)
- part.Touched:Connect(function(hit)
- if hit.Parent~=workspace[p.Name] and hit.Name~="Terrain" and hit.Name~="Baseplate" and hit.Name~="Base" then
- hit:Destroy()
- end
- end)
- wait(.1)
- end
- end)
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement