You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I want to get the position of the person who just joined the game and change the text of a textlabel to that position just for that person. Like a cordinate system.
- What is the issue? Include screenshots / videos if possible!
The issue is that I can print out the position of the player but it wont let me change the text of the textlabel to that position.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tryed to find any one else who has tryed to make a cordinate system and tried to find a tutorial but couldent find one.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
The script:
local CordinatesGui = StarterGui:WaitForChild("CordinatesGui")
local MainFrame = CordinatesGui:WaitForChild("MainFrame")
local MainTxtL = MainFrame:WaitForChild("MainTxtL")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
while humanoidRootPart do
print(player.Name,"is at",tostring(humanoidRootPart.Position))
local Cordinates = ReplicatedStorage:WaitForChild("ChangeCordinateText")
MainTxtL.Text = (Players.Name"is at "..humanoidRootPart.Position)
wait(4)
end
end)
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Thanks for all the help!