|
| 27 Mar 2015 08:48 PM |
On my game Island Wars [v0.1] when you click the ready GUI it tps you but youre invisable someone please help...
btw this is all in a localscript
local b = script.Parent local w = game.Workspace local islands = {w.tp1, w.tp2, w.tp3, w.tp4, w.tp5, w.tp6, w.tp7, w.tp8} local player = game.Players.LocalPlayer local char = player.Character
function onClicked() for i,v in ipairs(islands) do wait() if v.Occupied.Value == false then char.HumanoidRootPart.Position = v.Position + Vector3.new(0,3,0) v.Occupied.Value = true v.Owner.Value = player.Name end end end
function onPlayerRemoved(player) for i,v in ipairs(islands) do if v.Owner.Value == player.Name then v.Occupied.Value = false v.Owner.Value = nil end end end
b.MouseButton1Click:connect(onClicked) game.Players.PlayerRemoving:connect(onPlayerRemoved) |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 08:50 PM |
| ... just change the CFRame of their torso.. the "HuamnoidRootPart" is all of the "looks" without it you would still be able to play, but what happened to you; is what happens |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 08:53 PM |
| If I change it to Torso I die... Should I raise the tp1/tp2/ect a little higher or add cancollide??? |
|
|
| Report Abuse |
|
|
| |
|
jtefurd
|
  |
| Joined: 01 May 2010 |
| Total Posts: 952 |
|
|
| 27 Mar 2015 09:06 PM |
f v.Occupied.Value == false then char.Torso.CFrame = v.CFrame + CFrame.new(0,3,0) v.Occupied.Value = true v.Owner.Value = player.Name end end end
notice the CFrame part. c: |
|
|
| Report Abuse |
|
|