menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Simple question
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Simple question
NickyJ3
Join Date: 2011-12-23
Post Count: 3563
#190031226
Monday, May 30, 2016 12:45 AM GMT
function onButtonClicked() script.Parent..LoadCharacter() end script.Parent.MouseButton1Click:connect(onButtonClicked) Why is this not respawning the person?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NickyJ3
Join Date: 2011-12-23
Post Count: 3563
#190031603
Monday, May 30, 2016 12:50 AM GMT
Bump. ~Storm~
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Techante
Join Date: 2011-10-17
Post Count: 2101
#190031693
Monday, May 30, 2016 12:52 AM GMT
shouldn't that be script.Parent:LoadCharacter() ?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NickyJ3
Join Date: 2011-12-23
Post Count: 3563
#190033650
Monday, May 30, 2016 1:20 AM GMT
Possibly. I will try that. ~Storm~
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Egtix
Join Date: 2009-10-22
Post Count: 3471
#190033683
Monday, May 30, 2016 1:21 AM GMT
--LocalScript script.Parent.MouseButton1Down:connect(function() game.Players.LocalPlayer:LoadCharacter() end) ᵈᵃᶰᶤᵉˡ
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Ortron
Join Date: 2013-07-19
Post Count: 1297
#190034236
Monday, May 30, 2016 1:28 AM GMT
you can't load the character inside a local script
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Egtix
Join Date: 2009-10-22
Post Count: 3471
#190034394
Monday, May 30, 2016 1:30 AM GMT
Oops, try this then. script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Parent.Parent:LoadCharacter() end) --ScreenGui --ImageButton --Script ᵈᵃᶰᶤᵉˡ
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NickyJ3
Join Date: 2011-12-23
Post Count: 3563
#190035405
Monday, May 30, 2016 1:45 AM GMT
Thanks for the help! ~Storm~
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
NickyJ3
Join Date: 2011-12-23
Post Count: 3563
#190035693
Monday, May 30, 2016 1:50 AM GMT
Didn't work. ~Storm~
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
LockFocus
Join Date: 2013-08-31
Post Count: 1044
#190036104
Monday, May 30, 2016 1:56 AM GMT
uhh. player = (wherever you're getting the player) script.Parent.MouseButton1Click:connect(function() player:LoadCharacter() end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Egtix
Join Date: 2009-10-22
Post Count: 3471
#190036170
Monday, May 30, 2016 1:57 AM GMT
Why didn't it work? Was there any error logs? ᵈᵃᶰᶤᵉˡ
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right