#Guys i created script with diffrante idea
1 messages · Page 1 of 1 (latest)
local button = script.Parent
local plr = game.Players.LocalPlayer
local plr_name = plr.DisplayName
button.MouseButton1Click:Connect(function()
local player = game.Workspace:FindFirstChild(plr_name)
if player then
local HumanoidRootPart = player:FindFirstChild("HumanoidRootPart")
if HumanoidRootPart then
HumanoidRootPart.CFrame = CFrame.new(71.556, 0.496, 110.377)
end
end
end)
here
Script works but idk if it will cause problem
You shouldnt use display name since i think in workspace it is using the actual player name
Player name should be plr.Name
so i change plr_name = to what ?
like 3rd line plr_name = plr. what ?
to have same thing as workspace
so plr.Name will be same in workspace also , like if someone spend 1000 robux or have nicknam both names on players and worksapce will stay same ?
Just use user id
ok but in game.workspace how i get userid of same person ?
Just do plr.UserId
like in game.player.localplayers i can get userid but in game.workspace ?
yes this i can do it but HumanoidRootPart in person who in game.worksapce
You dont have to do allat
lmao
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character:PivotTo(CFrame.new(71.556, 0.496, 110.377))
end)
🐴 You don't gotta complicate stuff up