so i put a part in the serverstorage but when i press play its now gone
Because you’re playing on the client. Players can’t access ServerStorage or ServerScriptService. If you’re trying to clone something(using a local script), use a RemoteEvent or move it to ReplicatedStorage instead.
Because you’re probably viewing ServerStorage from the client.
Whenever you’re in the view of the client, it is always empty. ServerStorage
’s Instance
s are not replicated to client. They are not replicated to client until re-parented elsewhere. A storage visible for client is ReplicatedStorage
.
If you want to view these folders and their children’s, you need to click the server button next to the play button to switch from client to server. This is done for security purposes so an exploiter won’t be able to access ServerStorage and those server folders and then do any malicious actions.
is there any other way to access humanoidrootpart in script except this
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char.humanoidrootpart
That’s a separate question and should be looked around forum first before you make a new topic. To answer that briefly, no. And this answer is just a stub to whatever you’re trying to achieve.