of     1   

ApricotStyles
#35735723Wednesday, October 20, 2010 7:55 PM GMT

Ok, with this styled script, let me explane. Touch, gui: "Hello" or whatever, click, and you teleport, that one has no problems. This one doesnt either (look below) the thing is, after using it maybe 2-3 times it suddenly breaks. So I added the regen part into the script, still didnt work. I want to know if theres any loose ends, or probblems with using scripts like these in games. It works fine in a server, but not an online server with other players and such. Help? script: clone = script:clone() clone2 = script.Parent.ObservationGui2:clone() me = script me2 = script.Parent.ObservationGui2 debounce = false function onTouched(part) h=part.Parent:findFirstChild("Humanoid") if h~=nil and debounce == false then debounce = true local OG1 = script.Parent.ObservationGui2:clone() play = game.Players:playerFromCharacter(part.Parent) OG1.Parent = play.PlayerGui wait() if play.PlayerGui:findFirstChild("ObservationGui2") ~= nil then part.Parent.Torso.CFrame=CFrame.new((game.Workspace.PlyrTele2.Position.X), (game.Workspace.PlyrTele2.Position.Y+3), (game.Workspace.PlyrTele2.Position.Z)) h.WalkSpeed=0 clone.Parent = script.Parent clone.Name = "Script" clone2.Parent = script.Parent clone2.Name = "ObservationGui2" wait(0.1) me2:Remove() me:Remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
ApricotStyles
#35736085Wednesday, October 20, 2010 8:04 PM GMT

Can no one help or something?
ApricotStyles
#35738961Wednesday, October 20, 2010 8:54 PM GMT

Please help! Its very important!
ApricotStyles
#35741915Wednesday, October 20, 2010 9:44 PM GMT

Wow. I even tried being polite.
SDuke524
#35745072Wednesday, October 20, 2010 10:30 PM GMT

Try using :findFirstChild() on things like your teleport brick. This always happens to me whenever I don't identify everything with :findFirstChild() at least once it'll break by saying that it's nil. I don't know why I guess just outta lazyness but this is what it does to me.
ApricotStyles
#35763223Thursday, October 21, 2010 3:32 AM GMT

Would this work better? clone = script:clone() clone2 = script.Parent.ObservationGui2:clone() me = script me2 = script.Parent.ObservationGui2 debounce = false function onTouched(part) h=part.Parent:findFirstChild("Humanoid") if h~=nil and debounce == false then debounce = true local OG1 = script.Parent.ObservationGui2:clone() play = game.Players:playerFromCharacter(part.Parent) OG1.Parent = play:findFirstChild("PlayerGui") wait() if play.PlayerGui:findFirstChild("ObservationGui2") ~= nil then Torso = part.Parent:findFirstChild("Torso") Torso.CFrame=CFrame.new((game.Workspace.PlyrTele2.Position.X), (game.Workspace.PlyrTele2.Position.Y+3), (game.Workspace.PlyrTele2.Position.Z)) h.WalkSpeed=0 clone.Parent = script.Parent clone2.Parent = script.Parent if clone2.Parent ~= nil and clone.Parent ~= nil then wait(0.1) me2:Remove() me:Remove() debounce = false end end end end script.Parent.Touched:connect(onTouched)
ApricotStyles
#35764181Thursday, October 21, 2010 4:13 AM GMT

Bump =/
ApricotStyles
#35764370Thursday, October 21, 2010 4:22 AM GMT

Im losing hope here =/
ApricotStyles
#35768127Thursday, October 21, 2010 12:20 PM GMT

Bump :(
regsa
#35768570Thursday, October 21, 2010 1:02 PM GMT

What does it say when it crashes?
ApricotStyles
#35796424Friday, October 22, 2010 12:07 AM GMT

OMG! I SAID THAT! JEEZ! IT DOESNT CRASH, IT FAILS TO WORK. JUST DOESNT WORK, YOU TOUCH IT NOTHING HAPPENS, I CANT CHECK THE OUTPUT, BECAUSE IT WORKS FINE, FOREVER, ITS ONLY INGAME THAT IT FAILS. JEEZ!!!!!!!!!!!!
SDuke524
#35806569Friday, October 22, 2010 2:53 AM GMT

clone = script:clone() clone2 = script.Parent.ObservationGui2:clone() me = script me2 = script.Parent.ObservationGui2 debounce = false script.Parent.Touched:connect(function(part) h=part.Parent:findFirstChild("Humanoid") if h~=nil and debounce == false then debounce = true OG1 = script.Parent.ObservationGui2:clone() play = game.Players:GetPlayerFromCharacter(part.Parent) OG1.Parent = play.PlayerGui -- if the computer knows it will be there as in it defines it ( properites etc. ) then you don't need it Wait() Torso = part.Parent:findFirstChild("Torso") Torso.CFrame=CFrame.new((game.Workspace.PlyrTele2.Position.X), (game.Workspace.PlyrTele2.Position.Y+3), (game.Workspace.PlyrTele2.Position.Z)) h.WalkSpeed=0 clone.Parent = script.Parent clone2.Parent = script.Parent if clone2.Parent ~= nil and clone.Parent ~= nil then wait(0.1) me2:Remove() me:Remove() debounce = false end end end end )
ApricotStyles
#35808766Friday, October 22, 2010 4:11 AM GMT

Sweetness!! You had one to many ends, but it works great! Thanks!
ApricotStyles
#36118015Thursday, October 28, 2010 4:07 AM GMT

=/ breaks sometimes DX
ApricotStyles
#36536987Friday, November 05, 2010 6:46 PM GMT

Bump
ApricotStyles
#36537808Friday, November 05, 2010 7:10 PM GMT

BUMP!!! D:<
Elite777
#36537943Friday, November 05, 2010 7:14 PM GMT

Please stop bumping you said that it was working erlier
ApricotStyles
#36555891Saturday, November 06, 2010 12:07 AM GMT

Didn't you read the OTHER post? It sounded something like, STILL BREAKS!!! Did you think I was gonna bump a post when the script is fixed? I'm no idiot. Sheesh.

    of     1