DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 12:38 PM |
| My game is giving me some errors, and I don't understand what the problem is. Can someone join my game and help me out? |
|
|
| Report Abuse |
|
|
pullman45
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 2891 |
|
|
| 25 Aug 2016 12:39 PM |
I would if I was on a computer.
Paste the errors. |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 12:39 PM |
| Put the errors on this thread and I can definitely analyze considering the fact that I can't play your game right now. |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 12:42 PM |
| If you die twice, you don't respawn anymore. |
|
|
| Report Abuse |
|
|
pullman45
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 2891 |
|
|
| 25 Aug 2016 12:43 PM |
| Give us the script(s) and the errors. |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 12:43 PM |
the errors when you join, is
OnServerInvoke can only be implemented on the server
and
OnServerEvent can only be used on the server |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 12:45 PM |
| XD mate when you die twice you can't play anymore. You should do if you die once. |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
| |
|
|
| 25 Aug 2016 12:51 PM |
game.Players.PlayerAdded:connect(function(plr) plr.Humanoid.Died:connect(function() wait(2) plr:LoadCharacter() plr.Character.Torso.CFrame = spawn.CFrame end) end) just an example tweek to your liking.
|
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
| |
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 12:57 PM |
It didnt work. This is the script I have been working with though.
local plr = game.Players.LocalPlayer local char = plr.Character local dead = plr:WaitForChild("sendDeath") local respawnTime = 2
char.Humanoid.Died:connect(function() wait(respawnTime) dead:FireServer(true) end) |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 12:58 PM |
| what does send death do tho |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 01:00 PM |
| #################################################################################################################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 01:00 PM |
this is how the sendDeath works
local loadChar = require(game.ServerScriptService.Modules.LoadChar);
game.Players.PlayerAdded:connect(function(player) local dead = player:WaitForChild("sendDeath")
local function respawn(plr,value) if value == true then loadChar(plr,game.ReplicatedStorage,"Character") end end dead.OnServerEvent:connect(respawn) end) |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 01:01 PM |
Okay so heres the thing:
--Don't put code between the char and plr
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) --code end) end)
--code between them
game.Players.PlayerAdded:connect(function(plr) --code before, like a leaderboard repeat wait() until plr.Character --code plr.CharacterAdded:connect(function(char) --code, same code though end) end) |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 01:03 PM |
| Is there any way to just fix the scripts I worked with? |
|
|
| Report Abuse |
|
|
DJumble
|
  |
| Joined: 28 Dec 2015 |
| Total Posts: 440 |
|
|
| 25 Aug 2016 02:50 PM |
After you die twice, this pops up:
14:48:57.984 - http Get http : //ecsv2.roblox.com/pe ?t= client&ctx=killed&evt=inGameDied&pi d=486099854&creatorid=103095712&pos=%28%2D27%2 C4%2C75%29 failed. Trying again. Error: HTTP 202 (HTTP/1.1 202 Accepted). Elapsed time: 0.0355051 |
|
|
| Report Abuse |
|
|