So I need some help with setting a variable to a different variable. Here's the code block:
I am trying to get the value of Shipsname (Which is the models name that is in Workspace) and put it into another variable called Object. This models name varies and so I need a variable to represent it.(Called Shipsname)
Shipsname = game.Players.LocalPlayer.Character.Shipsname--Working on this Camera = game.Workspace.CurrentCamera Object = game.Workspace.Shipsname.BodyKit.Grok Player = script.Parent.Humanoid Camera.CameraSubject = Object Camera.CameraType=3 while true do wait() if Player.Sit == false then Camera.CameraSubject = Player script:Remove() end end
Help is appreciated. Sorry if its confusing. I'll try and clear up any questions you may have.
Shipsname = game.Players.LocalPlayer.Character.Shipsname--Working on this and Change the name of Shipsname to ShipsName Camera = game.Workspace.CurrentCamera Object = game.Workspace[Shipsname.Name].BodyKit.Grok Player = script.Parent.Humanoid Camera.CameraSubject = Object Camera.CameraType=3 while wait() do if not Player.Sit then Camera.CameraSubject = Player script:Remove() end end
Edited again.
Why in the world do you want a variable within a variable...?
Locked by EzraNehemiah_TF2, Redbullusa, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?