This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local scriptString = [[ | |
task.wait(2) -- Retraso para asegurar que PlayerGui y el personaje estén listos | |
local Players = game:GetService("Players") | |
local UserInputService = game:GetService("UserInputService") | |
local RunService = game:GetService("RunService") | |
local player = Players.LocalPlayer | |
local character = nil | |
local rootPart = nil | |
local humanoid = nil | |
local camera = workspace.CurrentCamera |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Players = game:GetService("Players") | |
local UserInputService = game:GetService("UserInputService") | |
local RunService = game:GetService("RunService") | |
local player = Players.LocalPlayer | |
local character = player.Character | |
local rootPart = character and character:FindFirstChild("HumanoidRootPart") | |
local humanoid = character and character:FindFirstChild("Humanoid") | |
local camera = workspace.CurrentCamera |