local ballcarrier = script.Parent local Ball = game.Workspace:FindFirstChild("Handle") ballcarrier.Value = Ball.Parent.Parent
I have a string value named ballcarrier in replicated storage, inside of it is this script. Ball is a tool and I'm trying to make it so it gets the player's name and puts it in the string value.
Ok so, put a script in the tool, then put this:
local StringVal = game.ReplicatedStorage.StringVal --put your string value here script.Parent.Equipped:Connect(function() StringVal.Value = script.Parent.Parent.Name.. "'s ball" end)
thats it, tell me if there is any problems.