Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- README! CORRECTLY WORKS ONLY ON SOLARA BETA 3 EXECUTOR!
- write in "keys" the number of the key to be pressed ( all keys https://create.roblox.com/docs/reference/engine/enums/KeyCode ).
- the numeric keys have already been recorded automatically ( 0 - 9 ).
- enable only when the player's character is spawned.
- to turn it off, inject it again.
- ]]--
- local keys = {
- 101 -- it's E key
- }
- local key = "jforu893438274ujfio4" -- change it, if don't work
- local Player = game.Players.LocalPlayer
- game.Players:SetAttribute(key, not game.Players:GetAttribute(key))
- local function keypresstwice(keycode)
- local Character = Player.Character
- keypress(keycode);
- task.wait(0.05);
- keyrelease(keycode);
- end
- while task.wait(0.5) do
- if not game.Players:GetAttribute(key) then oldpartpos = nil; HumanoidRootPart.Anchored = false; break end
- local Character = Player.Character
- if Character then
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local Humanoid = Character:WaitForChild("Humanoid")
- HumanoidRootPart.Anchored = true
- end
- for i = 48, 51, 1 do
- keypresstwice(i);
- task.wait(0.7)
- end
- for _, i in pairs(keys) do
- keypresstwice(i);
- task.wait(0.07)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement