Don't worry, I fixed it my self
It's cause the game is R15 only and I tried using Torso instead of UpperTorso lol
Its because you're trying to access the character of Game.Players. Game.Players is not a player but something that has all the players inside of it. If you want to get someones char then you gotta be more specific and have a username after it.
players = game.Players character = game.Players.Character script.Parent.Touched:connect(function(hit) for i, v in pairs(game.Players:GetPlayers()) do inGame = v:FindFirstChild("InGame") if inGame then if inGame.Value == false then if v.leaderstats.Points.Value >= 500 then v.leaderstats.Points.Value = v.leaderstats.Points.Value - 500 -- I'm guessing this is what you're trying to do. v.Character.Torso.Transparency = 1 end end end end end)
players = game.Players character = game.Players.LocalPlayer.Character script.Parent.Touched:connect(function(hit) for i, v in pairs(game.Players:GetPlayers()) do inGame = v:FindFirstChild("InGame") if inGame then if inGame.Value == false then if v.leaderstats.Points.Value >= 500 then v.leaderstats.Points.Value = v.leaderstats.Points.Value - 500 game.players.character.Torso.Transparency = 1 end end end end end)
I dont use the "for" command that way but i know what is wrong you're trying to access "character" in players
(also make sure its r6 your current problem isnt that but it will help)
local Character = game.Players.LocalPlayer.Character:wait()