Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LocalPlayer = game.Players.LocalPlayer
- function Create(HatName, position, rotation, part)
- Instance.new("Attachment",game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
- Instance.new("AlignPosition",game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
- Instance.new("AlignOrientation", game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle)
- Instance.new("Attachment",game:GetService("Workspace")[LocalPlayer.Name][part])
- workspace[LocalPlayer.Name][part].Attachment.Name = HatName
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AccessoryWeld:Destroy()
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Attachment0 = game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Attachment0 = game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Attachment1 = game:GetService("Workspace")[LocalPlayer.Name][part][HatName]
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Attachment1 = game:GetService("Workspace")[LocalPlayer.Name][part][HatName]
- game:GetService("Workspace")[LocalPlayer.Name][part][HatName].Position = position
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment.Rotation = rotation
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.Responsiveness = 200
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.Responsiveness = 200
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignPosition.RigidityEnabled = true
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.AlignOrientation.RigidityEnabled = true
- end
- function Edit(HatName, position, rotation, part)
- game:GetService("Workspace")[LocalPlayer.Name][HatName].Handle.Attachment.Rotation = rotation
- game:GetService("Workspace")[LocalPlayer.Name][part][HatName].Position = position
- end
- Create('fe1',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Right Arm')
- Create('fe2',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Left Arm')
- Create('fe3',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Left Leg')
- Create('fe4',Vector3.new(0,1.5,0),Vector3.new(0,0,0),'Right Leg')
- Create('Sign',Vector3.new(0,-0.25,-2),Vector3.new(90,0,0),'Right Arm');
- Create('Back_AccAccessory',Vector3.new(0,1.0,1.5),Vector3.new(0,90,0),'Torso');
- Create('Hat1',Vector3.new(0,-1.4,0),Vector3.new(0,90,0),'Torso')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement