Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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?

0
Are you using scripts or localscripts? IcyBlazeRB 28 — 4y
0
codeblock this Gameplayer365247v2 1055 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question