Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How come these two scripts dont work?ive asked my friends multiple times to help but it doesnt work

first script: local plr = game.Players.LocalPlayer local money = plr:WaitForChild("Silver"):FindFirstChild("Amount")

plr.Character.Humanoid.Died:Connect(function() script.Parent.Touched:connect(function() plr.money.Value = plr.money.Value + 1 end) end)

second script: plr.Character.Humanoid.Died:Connect(function() script.Parent.Transparency = 0 end end)

why wont both work?

2 comments

0

Are you using scripts or localscripts?

0

codeblock this

1 answer

im guessing this is a server script and if im right then the reason it dont work is because local player cant be accessed by the server, instead use a local script and fire a remote event to the server that tells it to change the values

This discussion is preserved as it was. New answers, comments, and votes are closed.