Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- local Item = game.Players.LocalPlayer:GetMouse().Target.Parent
- local Size = Item.PrimaryPart.Size.Y
- Item.PrimaryPart.Size = Vector3.new(0,0,0)
- local Rotate
- local Tilt
- Rotate = 0
- Tilt = 0
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "r" then
- Rotate = Rotate + 22.5
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "t" then
- Tilt = Tilt + 22.5
- end
- end)
- spawn(function()
- while game:GetService("RunService").RenderStepped:Wait() do
- game.Players.LocalPlayer:GetMouse().TargetFilter = Item
- Item:SetPrimaryPartCFrame(CFrame.new(math.floor(game.Players.LocalPlayer:GetMouse().Hit.X)+.03,math.ceil(game.Players.LocalPlayer:GetMouse().Hit.Y+(Size/2)-1),math.floor(game.Players.LocalPlayer:GetMouse().Hit.Z)-.03) * CFrame.Angles(math.rad(0),math.rad(Rotate),math.rad(Tilt)))
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement