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 » Scripting Helpers
Home Search
 

Re: how would i perform something like this

Previous Thread :: Next Thread 
Interactivity is not online. Interactivity
Joined: 03 Dec 2011
Total Posts: 23738
15 Nov 2014 03:28 PM
i'm trying to make it to where your character doesn't spawn until you click with the LMB (left mouse button)
i know its a simple task but im still a beginner scripter
Report Abuse
ZeveI is not online. ZeveI
Joined: 29 Sep 2012
Total Posts: 8003
15 Nov 2014 03:34 PM
mobile users wouldn't be able to spawn then

"the universe came from a magic explosion" - athiests
Report Abuse
sbk28 is not online. sbk28
Joined: 15 Nov 2008
Total Posts: 2528
15 Nov 2014 03:34 PM
in a normal script

set game.Players.CharacterAutoLoads

to false

in a local script

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Button2Down:connect(function()
game.Players.LocalPlayer:LoadCharacter()
end)

or something along those lines i kind of rushed it
Report Abuse
Interactivity is not online. Interactivity
Joined: 03 Dec 2011
Total Posts: 23738
15 Nov 2014 03:41 PM
@zevel
it is not a mobile-device-friendly game anyways

@sbk
side note: there is a gui on the screen to start
i did what you said and it made the entire gui disappear and when i clicked it did nothing
uh
Report Abuse
sbk28 is not online. sbk28
Joined: 15 Nov 2008
Total Posts: 2528
15 Nov 2014 03:45 PM
change normal script to

game.Players.CharacterAutoLoads = false

game.Players.PlayerAdded:connect(function(p)
p:LoadCharacter()
p.Character:Destroy()
p.CharacterAdded:connect(function(c)
c:WaitForChild("Humanoid").Died:connect(function()
wait(3)
p:LoadCharacter()
end)
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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