Kenneth Nyström Posted October 20, 2018 Share Posted October 20, 2018 (edited) So I am moving along with this video tutorial series # 25 checkpoint manager @ around 1143: on YT to get the hang of the basics. but I get a '=' expected near 'function' (on the 6th line from end: function Script:GetCheckpointPosition() I cant figure out why it isnt working. (pretty sure I have followed the instructions right) triple checked the text... ------------------------------------------------- Script.defaultCheckpoint = "" --entity "Default checkpoint" Script.currentCheckpoint = nil function Script:Start() if self.defaultCheckpoint == nil then error ("No default checkpoint") end self.currentCheckpoint = self.defaultCheckpoint End function Script:GetCheckpointPosition() return self.currentCheckpoint:GetPosition(true) end function Script:GetCheckpointRotation() return self.currentCheckpoint:GetRotation(true) end Edited October 21, 2018 by Kenneth Nyström Quote Link to comment Share on other sites More sharing options...
Slastraf Posted October 20, 2018 Share Posted October 20, 2018 Uppercase "End" instead of "end" ? Quote Link to comment Share on other sites More sharing options...
Kenneth Nyström Posted October 20, 2018 Author Share Posted October 20, 2018 2 minutes ago, Slastraf said: Uppercase "End" instead of "end" ? WOW that was fast...and it worked... TY I never even thought of looking at the word End...ok that was a lesson learned. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.