Advertisement
HenloMyDude

sanic morph

Dec 7th, 2019
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4. root = char.HumanoidRootPart
  5. tors = char.Torso
  6. hum = char.Humanoid
  7. spin = 0
  8.  
  9. ezweld = function(p, a, b, cf)
  10. local weld = Instance.new("Weld",p)
  11. weld.Part0 = a
  12. weld.Part1 = b
  13. weld.C0 = cf
  14. return weld
  15. end
  16.  
  17. local mesh = Instance.new("SpecialMesh",tors)
  18. mesh.MeshId = "rbxassetid://444051415"
  19. mesh.TextureId = "rbxassetid://444051418"
  20. mesh.VertexColor = Vector3.new(1, 1, 1)
  21. mesh.Offset = Vector3.new(0, 0, 0)
  22. mesh.Scale = Vector3.new(0.5,0.5,0.5)
  23.  
  24. local tilt = ezweld(char, tors, root, CFrame.Angles(0, math.rad(180), 0))
  25.  
  26. for i,v in pairs (char:GetDescendants()) do
  27. if v:IsA("Part") and v ~= tors then
  28. v.Transparency = 1
  29. end
  30. if v:IsA("Decal") then
  31. v:remove()
  32. end
  33. end
  34.  
  35. while true do
  36. wait()
  37. hum.JumpPower = 67.5
  38. spin = spin + 40
  39. local state = hum:GetState()
  40. if state == Enum.HumanoidStateType.FallingDown or state == Enum.HumanoidStateType.Freefall or state == Enum.HumanoidStateType.Jumping then
  41. tilt.C0 = CFrame.Angles(spin, math.rad(180), 0)
  42. else
  43. tilt.C0 = CFrame.Angles(0, math.rad(180), 0)
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement