Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i fix my morph gui script there is no error in the output and im using remote events?

Asked by 6 years ago

Hello so i've been working on a morph gui script and here's the code this is the remote event onserverevent code

--Morph
--made by XxGamerSporkXx_YT

game.ReplicatedStorage.Events.MorphDodobird.OnServerEvent:Connect(function(plr)
    print("morphing")
    game.StarterPlayer.Dodobird.TerrorBird.Parent = game.StarterPlayer.StarterCharacterScripts
    game.StarterPlayer.Dodobird.Name = "StarterCharater"
    plr.Character.Humanoid.Health = 0
    print("morphing")
    wait(10)
    print("morphing done and now changing to back morph")
    game.StarterPlayer.StarterCharater.Name = "Dodobird"
    game.StarterPlayer.StarterCharacterScripts.TerrorBird.Parent = game.StarterPlayer.Dodobird
end)

this next one is the mousebutton1click code where if you click on the button it will trigger the server event

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.Events.MorphDodobird:FireServer()
end)

the error in the output is nothing i can't find a single error. Anyways thanks for reading.

0
do you get any prints? add one after the fire server in local script and see if the event is sending. DinozCreates 1070 — 6y

Answer this question