Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Float = Instance.new("Part",workspace);
- Float.Size = Vector3.new(6,1,6);
- Float.Anchored = true;
- Float.CanCollide = true;
- Float.Transparency = 1;
- game:GetService("UserInputService").InputBegan:Connect(function(InputObject,GameProcessed)
- if GameProcessed then
- return;
- end
- if InputObject.KeyCode == Enum.KeyCode.Six then
- if not Float.CanCollide then
- Float.CanCollide = true;
- else
- Float.CanCollide = false;
- end
- end
- end)
- while true do
- game:GetService("RunService").RenderStepped:Wait()
- if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Four) then
- pcall(function() Float.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-4,0) end)
- elseif game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Five) then
- pcall(function() Float.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3,0) end)
- else
- pcall(function() Float.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3.5,0) end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement