Advertisement
Creepinson

scale script test

Apr 15th, 2018
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. creepinoModel = workspace:FindFirstChild("creepinoModel")
  2. if creepinoModel == nil then
  3. creepinoModel = Instance.new("Model")
  4. creepinoModel.Name = "creepinoModel"
  5. creepinoModel.Parent = workspace
  6. end
  7. part = Instance.new("Part")
  8. part.Name = "TouchMe"
  9. part.Anchored = true
  10. part.Parent = creepinoModel
  11. local touch = false
  12. part.Touched:connect(function(touchedPart)
  13. if touchedPart ~= nil then
  14. if touchedPart.Parent ~= nil then
  15. if touchedPart.Parent:FindFirstChild("Humanoid") ~= nil then
  16. local h = touchedPart.Parent:FindFirstChild("Humanoid")
  17. if touch == true then
  18. for i = 1, 4, 0.1 do
  19. h.HeadScale.Value = i
  20. h.BodyWidthScale.Value = i
  21. wait(1)
  22. end
  23. h.BodyDepthScale = 0.25
  24. wait(4)
  25. touch = false
  26. else
  27. for i = 4, 1, -0.1 do
  28. h.HeadScale.Value = i
  29. h.BodyWidthScale.Value = i
  30. wait(1)
  31. end
  32. h.BodyDepthScale = 1
  33. wait(4)
  34. touch = true
  35. end
  36. end
  37. end
  38. end
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement