Can someone explain to me why this doesn’t work
local Figure = script.Parent.SpawnLocation
local target = Vector3.new(20, 10, 20)
local Spawn = game.Workspace.SpawnLocation.Head
local Humanoid = script.Parent.Humanoid
local Health = Humanoid.Health
local Value = script.Parent.Value
local currrentHealth = Humanoid.Health
while true do
And this does
while true do
The Local values are for a different script but the entire script doesn’t work with them
Did you try checking the obvious things like if the script is disabled? @TheCarbyneUniverse
I think he means that the first script doesn’t print anything at all.
Yeah the first script doesn’t print anything at all and I’ve checked and made sure plenty of times the script isn’t disabled
Is it a server script or local script and where is it located in the game hierarchy?
I’ve tried both a server script and a local script to no avail. The script is located in a model directly under workspace.
What if you comment out everything and put one print statement, does it work? Also, are you sure you can not find any errors?
Hmm yeah when i comment out everything besides the print statement it works. Have i made an error in the Variables somewhere?? it doesn’t point anything out
You’ve defintely made an error in the variables. Check your output window for errors the corrolate with the script.
If you script cant find Spawnlocation, it will error, if it cant find head inside spawnlocation, it will error, if it cant find the humanoid, it will error, etc.
Any errors above will stop below.