Making a teleport gui and it won't work? (For Void Script Builder Place 1)
So i'm making a teleport gui but, when i click the button to teleport, i get this error;
Players.Entity_246.PlayerGui.TP.Frame.LocalScript:6: attempt to index field 'Character' (a nil value)
my script is;
1 | local target = script.Parent.Target.Text |
2 | plr = game:GetService( "Players" ).LocalPlayer |
5 | script.Parent.Fire.MouseButton 1 Click:Connect( function (Tele) |
6 | char.HumanoidRootPart.Position = game.Players,target.Character.HumanoidRootPart.Position |
i already have a script setting a string value to the target.
Extra: This is for Void Script Builder Place One and for my own personal learning.
thanks,