Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = Instance.new("Part", game.Workspace)
- p.CanCollide = false
- p.BrickColor = BrickColor.new(1,1,0)
- p.Size = Vector3.new(24,24,24)
- p.Transparency = 0.5
- p.Anchored = true
- local snapto = game.Workspace.FreeModelInventor.Torso
- local startsize = p.Size
- p.FormFactor = Enum.FormFactor.Custom
- local size = 0
- p.Touched:connect(function(hit)
- if hit.Parent ~= snapto.Parent then
- local tar = hit.Parent:FindFirstChild("Humanoid")
- if tar then
- tar:TakeDamage(5)
- end
- end
- end)
- while wait() do
- size = size+1
- local o = math.sin(size/4)*10
- p.Size = startsize+Vector3.new(o,o,o)
- p.CFrame = snapto.CFrame
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement