Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ok so, this allows you to enter a car's driver seat or passenger seat by pressing T or R when hovering over it.
- Driver : T
- Passenger : R
- Code:
- -- cat#4023 is the best cat owo
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local UIS = game:GetService("UserInputService")
- local deboune = false
- local Client = {}
- for i,v in pairs(debug.getregistry()) do
- if typeof(v) == "function" then
- for i2,v2 in pairs(debug.getupvalues(v)) do
- if typeof(v2) == "table" and v2.FireServer then
- Client.FireServerT = v2
- end
- end
- end
- end
- UIS.InputBegan:Connect(function(Input)
- if Input.KeyCode == Enum.KeyCode.R then
- local Arguments = {
- [1] = "hqsi66uy",
- [2] = Mouse.Target.Parent,
- [3] = Mouse.Target.Parent.Passenger
- }
- Client.FireServerT:FireServer(unpack(Arguments))
- elseif Input.KeyCode == Enum.KeyCode.T then
- local Arguments2 = {
- [1] = "hqsi66uy",
- [2] = Mouse.Target.Parent,
- [3] = Mouse.Target.Parent.Seat
- }
- Client.FireServerT:FireServer(unpack(Arguments2))
- end
- end)
- print('Joe')
- I'd post the link but I'd just get called a ratter for the 3rd time.
- The car must be unlocked, and obviously, whatever seat you are trying to get into has to be empty.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement