Advertisement
rater193_james

ForcefieldForZevnov

Aug 1st, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. p = Instance.new("Part", game.Workspace)
  2. p.CanCollide = false
  3. p.BrickColor = BrickColor.new(1,1,0)
  4. p.Size = Vector3.new(24,24,24)
  5. p.Transparency = 0.5
  6. p.Anchored = true
  7.  
  8. local snapto = game.Workspace.FreeModelInventor.Torso
  9.  
  10. local startsize = p.Size
  11. p.FormFactor = Enum.FormFactor.Custom
  12.  
  13. local size = 0
  14.  
  15.  
  16.  
  17. p.Touched:connect(function(hit)
  18. if hit.Parent ~= snapto.Parent then
  19. local tar = hit.Parent:FindFirstChild("Humanoid")
  20. if tar then
  21. tar:TakeDamage(5)
  22. end
  23. end
  24. end)
  25.  
  26. while wait() do
  27. size = size+1
  28. local o = math.sin(size/4)*10
  29. p.Size = startsize+Vector3.new(o,o,o)
  30. p.CFrame = snapto.CFrame
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement