Well i cant help since im also new to programming but if you need help with any Kill Bricks or Kill Parts then i can help you otherwise i cant because im new too.
Make sure everyone stays on topic here, @hakobmher we canât help you unless you fully explain what you want to achieve. Can you please rethink what to write for your topic and then edit it in, so we can help you.
Writing a sentence or 2 isnât enough for an explanation.
local Checkpoint = game.Workspace.CheckPoint1
local Player = game.Players.LocalPlayer
local Humanoid = Player:WaitForChild("Humanoid")
local Arrow = Checkpoint.Arrow
Checkpoint.Touched:Connect(function(Humanoid ))
Arrow.Position = -- position of the next checkpoint
end)
You have alot of mistakes in the script. The humanoid is in the character of the player not in the player itself. Secondly, it would require like one touched event for every checkpoint.
This seems like a simple action of adorning a part above the current checkpoint part and then changing what part the arrow is adorned over when the value of âLevelâ changes (or whatever you use to determine what stage a player is on).
Have you made an attempt before posting this thread? If not, please go do so and use existing resources for support (Iâm sure checkpoint arrow assets exist in the toolbox). If yes and it didnât work, please show your implementation and explain what was wrong with it.
Yes i tried many times but it is not working i want make it like automatic but i am not good enough Lua is too hard for me i am trying to learn already 3 years butâŚ
If youâve already tried, please supply information regarding your attempts. Show the code youâve used and whatâs wrong with that as well, plus anything else that would help to see how you tried this out and what may be the cause of your attempt not working.
somone tryed to help me but its not working and i think its for one touched action
local Checkpoint = game.Workspace.CheckPoint1
local Player = game.Players.LocalPlayer
local Humanoid = Player:WaitForChild(âHumanoidâ)
local Arrow = Checkpoint.Arrow
Checkpoint.Touched:Connect(function(Humanoid ))
Arrow.Position = â position of the next checkpoint
end)
Thatâs just the code that was posted above earlier which in itself is just sample code, not actual code for you to copy and paste (the code sample doesnât even work and itâs not finished either). I was talking about your attempts. Did you attempt this prior to posting the thread and if so what did you use? If you didnât attempt this before posting this thread, then thatâs what you should be doing. Use existing resources for help, such as toolbox assets or the Developer Hub for API reference.
yes made it and it worked but i made it for 1 time i cant make it automatic i think it need to work with for i = inpairs⌠but idk how to do it
i did very simple script.parent.Touched:Connect(function()
game.workspace.arrow.Position = Position.Udim2.new(âŚ)
end)