Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 28 Aug 2015 03:39 PM |
The Server Script works fine, but the Local Script doesn't seem to do anything.
-- Server Script MessageEvent = script.LocalScript:FindFirstChild("DisplayMessage"); Model = script.Parent:WaitForChild("Bricks"); ModelBackup = Model:clone(); while true do wait(10) Model:remove() if Model.Parent == nil then script.Parent.Changed:connect(function(ModelRemoved, FireMessage) if ModelRemoved then MessageEvent:FireClient(FireMessage) end end) end wait(5) Model = ModelBackup:clone() Model.Parent = script.Parent Model:MakeJoints() end
-- Local Script PlayerService = game:GetService("Players"):GetChildren() Message = game.ServerStorage:WaitForChild("CloneGUI"); MessageBackup = Message:clone(); MessageEvent = script:FindFirstChild("DisplayMessage"); Player = PlayerService.LocalPlayer function onPlayerAdded(player) return player end PlayerService.ChildAdded:connect(onPlayerAdded) for _,player in pairs(PlayerService:GetChildren()) do onPlayerAdded(player) end function MessageEvent:OnClientEvent() Message = MessageBackup:clone() Message.Parent = Player.PlayerGui wait(5) Message:remove() end
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 28 Aug 2015 03:46 PM |
Hmm, bump.
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 28 Aug 2015 03:54 PM |
And another bump.
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2015 03:57 PM |
tl;dr But here's a basic run down
Server goes like, hey local script take THIS arg1 and passes it through the remote event remoteEvent:FireClient(game.Players.vacha,"arg1")
Local script goes like: oh server ok I see you want me to recieve something and he goes like remoteEvent.OnClientEvent:connect(function(incomingArguments)--The arguments the server has passed print(incomingArguments) --> Prints (the argument recieved from the server) "arg1" end)
so yeah, if I confused me just tell you while true do the do |
|
|
| Report Abuse |
|
|