Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local UIS = game:GetService("UserInputService")
- Debounce = false
- local Part = Instance.new("Part")
- Part.Name = "Voador"
- Part.Size = Vector3.new(10, 1, 10)
- Part.Anchored = true
- Part.Transparency = 1
- Part.Parent = game.Workspace
- Part.Position = Player.Character.Head.Position + Vector3.new(0, -5, 0)
- function ePressed(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.E then
- local Part = Instance.new("Part")
- Part.Name = "Peça"
- Part.Size = Vector3.new(6, 1, 6)
- Part.Anchored = true
- Part.Parent = game.Workspace
- Part.Position = Player.Character.Head.Position - Vector3.new(0, 5, 0)
- wait(5)
- Part:Destroy()
- end
- if inputObject.KeyCode == Enum.KeyCode.F then
- if Debounce == false then
- Debounce = true
- else
- Debounce = false
- end
- end
- end
- UIS.InputBegan:Connect(ePressed)
- while wait() do
- if Debounce == true then
- Part.Transparency = 0
- Part.CanCollide = true
- Part.Position = Player.Character.Head.Position + Vector3.new(0, -5, 0)
- else
- Part.Transparency = 1
- Part.CanCollide = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement