generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

My character disappears?

Previous Thread :: Next Thread 
epicname3000 is not online. epicname3000
Joined: 24 Jun 2011
Total Posts: 444
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
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
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
epicname3000 is not online. epicname3000
Joined: 24 Jun 2011
Total Posts: 444
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
epicname3000 is not online. epicname3000
Joined: 24 Jun 2011
Total Posts: 444
27 Mar 2015 08:58 PM
bump1 pls help :((((
Report Abuse
jtefurd is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image