Generated Script, my character changing script isn't working?
I heeded your advice and made a remote event and localscript on my "beast" spawn that, ontouched, will fire a remote event in the main script to transform the character. Nothing seems to be happening. I am getting the "Beast made" message at the end of my script though. Thanks for the help!
Main Script
04 | game.Workspace.MapHolder.Facility.MapData.BeastSpawn.RemoteEvent.OnServerEvent:Connect( function (plr) |
05 | for _,player in pairs (contestants) do |
06 | if player = = beast then |
07 | local model = game.Workspace.TheBeast |
08 | local character = player.Character |
09 | local newmodel = model:Clone() |
10 | character.Archivable = true ; |
11 | player.Character = newmodel |
12 | character.Parent = nil |
Local script attached to beast spawn
01 | function makebeast(plr) |
03 | local plr = plr.Parent |
04 | local camera = workspace.CurrentCamera |
05 | local rig = game.Workspace.TheBeast |
06 | camera.CameraType = "Follow" |
07 | camera.CameraSubject = rig.Head |
08 | game.Workspace.MapHolder.Facility.MapData.BeastSpawn.RemoteEvent:FireServer() |
12 | script.Parent.Touched:Connect(makebeast) |