local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone() local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local arrowgoto = workspace.Part -- Make "Part" into your part name ArrowModel.Parent = workspace ArrowModel.Name = player.Name.."'s Arrow" game:GetService("RunService").RenderStepped:Connect(function() ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, arrowgoto.Position) end) arrowgoto.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then ArrowModel:Destroy() script.Disabled = true end end) script to remove arrow when touched part
ok so i like the arrow thing but i think you should make a more advanced one where its is a trail of arrows leading to the block. also make it so you could fit it inside a tutorial, so if you press a button (a gui button) it will show you where it is, and also when you press another button it will disappear.
It didn't work. Is it because when ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, workspace.ArrowModel) The workspace.ArrowModel? Maybe is it supposed to be ReplicatedStorage.ArrowModel?
I copied the exact code. However, I am left with this error: 20:04:09.563 Players.leavesfed.PlayerScripts.LocalScript:9: attempt to index nil with 'CFrame' - Client - LocalScript:9 I named all the parts exactly like you did
local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone() local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local arrowgoto = workspace.Part -- Make "Part" into your part name ArrowModel.Parent = workspace ArrowModel.Name = player.Name.."'s Arrow" game:GetService("RunService").RenderStepped:Connect(function() ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, arrowgoto.Position) end) arrowgoto.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then ArrowModel:Destroy() script.Disabled = true end end) -- isn't mine. -ImKing
hey, i scripted it like that when i walk to the part, it is being destroyed. How do i make it so when the part is destroyed, the arrow is destroyed too?
at the end of the script i tried adding workspace.Portal1.PortalPart.Touched:Connect(function(hit) if hit.Parent == player then ArrowModel:Destroy() end end) to get the arrow destroyed when PortalPart is touched but it doesnt work. Does anyone know why?
It was never said in the video that this would be a feature, if you want this feature then you are going to have to make it yourself. You can detect collisions with Part.Touched to see if the player touches the part and then destroy the arrow.
Just do a .Touched event to detect a touch then destroy/ set the transparency of the part. developer.roblox.com/en-us/api-reference/event/BasePart/Touched
@@xSweDev I’m a new developer and I just don’t know how to involve the part to be destroyed once touched is there a way you could put the script for that in here.
i made it so when u touch the part the arrow is gone but how do i make the game remember that i touched the part when i rejoin it again show me the arrow: local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone() local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() ArrowModel.Parent = workspace ArrowModel.Name = player.Name.."'s Arrow" game:GetService("RunService").RenderStepped:Connect(function() ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, workspace.ArrowPart.Position) workspace.ArrowPart.Touched:Connect(function(hit) if hit.Parent.Name == player.Name then ArrowModel:Destroy() end end) end)
If you want the state of the arrow to save, you'll have to save some data using DataStore service. There are some great tutorials on storing data with DataStore service, so I recommend you check that out.
Thanks man, you explained it rlly well and the logic of it isn't even confusing. Thanks a lot. :)
EXACTLY WHAT I NEEDED! THANK YOU!
Thanks Kid! You are truly GigaChad
Thanks you just got a sub
THIS IS WHAT I NEEDED
bro thank you so much!
I love it this is the best one ever
Who asked kid
@@Shinyteethraid1 its a comment section bozo
Helped me much, just make a better thumbnail, go full screen, speak louder, edit a bit, and your videos will be insane!
THANK YOU
Great!
do u know a possibility to make the arrow only point the part in the X axis
Can you make when you hold a gear and the arrow will shown up.
tyy
how do i make it so that it only works once for new plays and never show up again
how to make own arrow model? i want to make it by myself
Nice video but how to make this happen only if you equip a tool?
local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone()
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local arrowgoto = workspace.Part -- Make "Part" into your part name
ArrowModel.Parent = workspace
ArrowModel.Name = player.Name.."'s Arrow"
game:GetService("RunService").RenderStepped:Connect(function()
ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, arrowgoto.Position)
end)
arrowgoto.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
ArrowModel:Destroy()
script.Disabled = true
end
end)
script to remove arrow when touched part
It's a bug because there are too many part named objects. The code doesn't work when I direct it to the ArrowPart object.
im sorry if i sound stupid but can i ask where do i put that script into?
Ty!
@@zekoyt StarterCharacterScripts
BROO TYSM!!!!!!
Guys let me know what I should make a video on next! I really need video ideas to keep going.
make an npc follow the player.
ok so i like the arrow thing but i think you should make a more advanced one where its is a trail of arrows leading to the block. also make it so you could fit it inside a tutorial, so if you press a button (a gui button) it will show you where it is, and also when you press another button it will disappear.
@@proatplanes That is actually quite easy to achive by using beams, i could probably make a tutorial on it.
@@xSweDev that would be great, im struggling on making a tutorial and the arrow will help.
or beam, i cant find it on youtube so i asked you.
tysmmmm
can you make it where when you touch the part it navigates to another part?
yes
thanks
It didn't work. Is it because when
ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, workspace.ArrowModel)
The workspace.ArrowModel? Maybe is it supposed to be ReplicatedStorage.ArrowModel?
can u make it so it makes a new arrow and points to new prompt plz and ty
UPDATE: This feature is deprecated which means that you have to do "CFrame.LookAt" instead of doing "CFrame.new"!
Great video man! You have got yourself a subscriber.
I copied the exact code. However, I am left with this error: 20:04:09.563 Players.leavesfed.PlayerScripts.LocalScript:9: attempt to index nil with 'CFrame' - Client - LocalScript:9
I named all the parts exactly like you did
have you resolved this issue or given up?
same@@rllydaniel
For hire
entered all the script, but my arrow just sits where i left it when i started scripting
nevermind, but now i just can see the arrow in game
Can u pls make a video about a script showing how to make it so it disappears when u touch it
local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone()
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local arrowgoto = workspace.Part -- Make "Part" into your part name
ArrowModel.Parent = workspace
ArrowModel.Name = player.Name.."'s Arrow"
game:GetService("RunService").RenderStepped:Connect(function()
ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, arrowgoto.Position)
end)
arrowgoto.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
ArrowModel:Destroy()
script.Disabled = true
end
end)
-- isn't mine. -ImKing
hey, i scripted it like that when i walk to the part, it is being destroyed. How do i make it so when the part is destroyed, the arrow is destroyed too?
ArrowModel:Destroy() set a magnitude check between the player and the part ur pointing at.
at the end of the script i tried adding
workspace.Portal1.PortalPart.Touched:Connect(function(hit)
if hit.Parent == player then
ArrowModel:Destroy()
end
end)
to get the arrow destroyed when PortalPart is touched but it doesnt work. Does anyone know why?
workspace.Portal1.PortalPart.Touched:Connect(function(hit)
if hit.Parent.Name == player.Name then
ArrowModel:Destroy()
end
end)
mine never works in anything
nice one but how can i make it multiplie arrows? please respond
You could make the code into a function that whenever you call the function, it creates a new arrow pointing to a position.
please do it when one touches a block the arrow appears
@LuaCoded Exactly
notice how he never touches the block i tried it and when i touched the block the arrow didnt go away
It was never said in the video that this would be a feature, if you want this feature then you are going to have to make it yourself. You can detect collisions with Part.Touched to see if the player touches the part and then destroy the arrow.
@@xSweDev alr
Please obby arrow system. Would you. :-)
it doesn't work
Are you American or a different country?
I am from Sweden
Can u make it when you touch the part it disappears
Just do a .Touched event to detect a touch then destroy/ set the transparency of the part.
developer.roblox.com/en-us/api-reference/event/BasePart/Touched
@@xSweDev I’m a new developer and I just don’t know how to involve the part to be destroyed once touched is there a way you could put the script for that in here.
@@xSweDev I don’t understand
@@think_its_ty7510 Just use script.Parent:Destroy() - Put that as a script into your part and it'll destroy it.
@@rblxcasino5104 I dont think that works anymore
i made it so when u touch the part the arrow is gone but how do i make the game remember that i touched the part when i rejoin it again show me the arrow:
local ArrowModel = game.ReplicatedStorage:WaitForChild("ArrowModel"):Clone()
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
ArrowModel.Parent = workspace
ArrowModel.Name = player.Name.."'s Arrow"
game:GetService("RunService").RenderStepped:Connect(function()
ArrowModel.PrimaryPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, workspace.ArrowPart.Position)
workspace.ArrowPart.Touched:Connect(function(hit)
if hit.Parent.Name == player.Name then
ArrowModel:Destroy()
end
end)
end)
If you want the state of the arrow to save, you'll have to save some data using DataStore service. There are some great tutorials on storing data with DataStore service, so I recommend you check that out.
do u know how to make it so it saves?