Hello! I am creating sword arena (I'm scripting beginner) and I already did "teleport on touch". This brick teleports you to Arena, but I want to add, that, when you touch brick, you'll get "Sword" (Classic by Roblox),
so please, help me with script and also, where to put Sword in Explorer and all these scripts :)
Thank you, if you need more information, ask me!
Also code, which's already in that brick: local part = script.Parent
local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Head.CFrame = CFrame.new(-416, 77.9, 187.6)
end
part.BrickColor = BrickColor.new("Black")
wait(0.2)
part.BrickColor = BrickColor.new("White")
end)

4 comments
It's working! Thank you :) How happy can you be, that you know all these scritps. May I ask you, where do you started and where to learn?
I started with a Roblox video. I always had wanted to learn to script so I started with this video: https://www.youtube.com/watch?v=0LiaEDui2vE and from there I really just learned around. Watching more videos and learning by myself. Of course there is a lot to still learn and that's my main focus: learning. Roblox Lua is very easy to lean. I think everyone should learn it on Roblox.
Do you have your own games? And sorry, I'd like to mark your answer as "helped" but i can't find button. The site doesn't show it to me.
Yes. I have one game and I am working on another for a police group with 14K+ members.