Advertisement
agentagony124

Untitled

Mar 30th, 2023
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. local LocalPlayer = game.Players.LocalPlayer
  2.  
  3. function Create(HatName, position, rotation, part)
  4. Instance.new("Attachment",game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
  5. Instance.new("AlignPosition",game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
  6. Instance.new("AlignOrientation", game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
  7. Instance.new("Attachment",game:GetService("Workspace")[LocalPlayer.Name][part])
  8. workspace[LocalPlayer.Name][part].Attachment.Name = HatName
  9. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AccessoryWeld:Destroy()
  10. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Attachment0 = game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment
  11. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Attachment0 = game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment
  12. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Attachment1 = game:GetService("Workspace")[LocalPlayer.Name][part][HatName]
  13. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Attachment1 = game:GetService("Workspace")[LocalPlayer.Name][part][HatName]
  14. game:GetService("Workspace")[LocalPlayer.Name][part][HatName].Position = position
  15. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment.Rotation = rotation
  16. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Responsiveness = 200
  17. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Responsiveness = 200
  18. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.RigidityEnabled = true
  19. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.RigidityEnabled = true
  20. end
  21.  
  22. function Edit(HatName, position, rotation, part)
  23. game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment.Rotation = rotation
  24. game:GetService("Workspace")[LocalPlayer.Name][part][HatName].Position = position
  25. end
  26.  
  27. Create('fe1',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Right Arm')
  28. Create('fe2',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Left Arm')
  29. Create('fe3',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Left Leg')
  30. Create('fe4',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Right Leg')
  31. Create('Sign',Vector3.new(0,-0.25,-2),Vector3.new(90,0,0),'Right Arm');
  32. Create('Back_AccAccessory',Vector3.new(0,1.0,1.5),Vector3.new(0,90,0),'Torso');
  33. Create('Hat1',Vector3.new(0,-1.4,0),Vector3.new(0,90,0),'Torso')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement