|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|