Okay so I have this whole script working but the teleport doesn't work:
wait(1)
button = script.Parent
local dbounce = false
function hi()
if dbounce == false then
dbounce = true
script.Parent.Parent.TextButton1.LocalScript:Destroy()
game.ReplicatedStorage.LinkedSword:clone().Parent = game.Players.LocalPlayer.Backpack
game.ReplicatedStorage.RocketLauncher:clone().Parent = game.Players.LocalPlayer.Backpack
for i = 0.3, 1, 0.1 do
wait(0.1)
script.Parent.BackgroundTransparency = i
script.Parent.Parent.BackgroundTransparency = i
script.Parent.Parent.TextButton1.BackgroundTransparency = i
script.Parent.Parent.Parent.Label.BackgroundTransparency = i
script.Parent.Parent.Parent.Label.TextLabel.TextTransparency = i
end
script.Parent.Parent.Visible = false
game.Players.LocalPlayer.Character.Torso.CFrame.Position = Vector3.new(0,50,0) --- Why doesn't this work?
end
end
script.Parent.MouseButton1Click:connect(hi)
