#I need help with an error in a damage script
19 messages · Page 1 of 1 (latest)
"Player" isn't a valid variable.
make a variable that actually defines "Player"
if you're using a localscript, put somehting like this at the top of the script
local player = game.Players.LocalPlayer
if its a normal script, put this at the top instead this :
local players = game.Players:GetPlayers()
What are you trying to define with "Player"?
huh..? are you trying to make a weapon?
What type of weapon are you trying to make
Are you using a tool?
ok so
i would say make a invisible part, and put it in replicated storage
in the invisitble part, put a script and put the damage script there
and then in the tool, use a script that uses a raycast system to call in the part when clicked
that should work well
You can look up how to use raycat
raycast*
Scripting is complicated xD
As for what you're trying to do, your demands are very complicated so you just gotta use a complicated system to make it ig
You know the guns in like prison life
They use raycast
So if u use a weapon like that, ray cast would be a good system to use