of     1   

Riderj
#63626054Wednesday, February 29, 2012 9:54 PM GMT

I have an issue, this will not work on my script builder: elseif Action == "Laser" then     while ispressing == true do         wait(.1)         Hit.Parent.Humanoid:TakeDamage(math.random(1,5))         ray = Ray.new(Handle.CFrame.p,(mouse.Hit.p-Handle.CFrame.p).unit*300)         Hit,Position = game.Workspace:FindPartOnRay(ray,player.Character)         TraceRay(Handle.CFrame.p,Position)     end end This does work though: local r = false while r == false do     wait()     print("R") end I removed the wait in my first script, and it worked. So I was assuming it was the re-write of my wait function to work with my error handling. I realized it was not, because the second example works. Here is the re-write of my wait: env.wait = function(time)     if coroutine.running() == FError then         delay(time,function()         IsError,Output = coroutine.resume(FError)         if not IsError then             out.OutputValue.Value = out.OutputValue.Value..Output:gsub("%[(.*)%]:","") .. " "             out.OutputValue.NumMessages.Value = out.OutputValue.NumMessages.Value + 1             coroutine.resume(coroutine.create(function()                 wait(5)                 script:Destroy()             end))         end         end)         coroutine.yield(FError)     else         wait(time)     end     return true end I have spent hours so far trying to solve this issue, I just cannot see what is wrong. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63627005Wednesday, February 29, 2012 10:09 PM GMT

Nobody can help? [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63627921Wednesday, February 29, 2012 10:24 PM GMT

-.- [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
micol2242
#63628223Wednesday, February 29, 2012 10:29 PM GMT

Is the 'ispressing' part of it true? --what is this i dont even--
Riderj
#63628777Wednesday, February 29, 2012 10:38 PM GMT

Everything works. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63628818Wednesday, February 29, 2012 10:38 PM GMT

Everything is defined. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Grove537
#63629925Wednesday, February 29, 2012 10:56 PM GMT

Why do you have elseif at the top and not just if? ~The greatest free model is your mind~
Riderj
#63630294Wednesday, February 29, 2012 11:01 PM GMT

It is inside another if. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63632055Wednesday, February 29, 2012 11:30 PM GMT

Hmph [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
2tallhank
#63632144Wednesday, February 29, 2012 11:32 PM GMT

[ Content Deleted ]
Riderj
#63632977Wednesday, February 29, 2012 11:48 PM GMT

Well that is no use to me. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63634167Thursday, March 01, 2012 12:07 AM GMT

48 views and only about 11 responses. [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
SDuke524
#63636115Thursday, March 01, 2012 12:45 AM GMT

Can I see your `TraceRay` function?
SDuke524
#63636153Thursday, March 01, 2012 12:45 AM GMT

> 48 views and only about 11 responses. My questions usually get 300 views before 11 responses, excluding my bumps.
Riderj
#63636779Thursday, March 01, 2012 12:58 AM GMT

May I note, this works in every other SB besides mine, and sure. function TraceRay(pos1,pos2) local RayPart = Instance.new("Part",player.Character) RayPart.Anchored = true RayPart.CanCollide = false RayPart.TopSurface = 0 RayPart.BottomSurface = 0 RayPart.LeftSurface = 0 RayPart.RightSurface = 0 RayPart.BrickColor = BrickColor.random() RayPart.FormFactor = "Custom" local Distance = (pos2-pos1).magnitude RayPart.Size = Vector3.new(0.2,.2,Distance) RayPart.CFrame = CFrame.new(pos2,pos1) * CFrame.new(0,0,-Distance/2) game.Debris:AddItem(RayPart,.1) end [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
SDuke524
#63636840Thursday, March 01, 2012 12:59 AM GMT

Oh, well then obviously the problem is your script builder.
Riderj
#63636974Thursday, March 01, 2012 1:02 AM GMT

If you would like to help live ( I would appriciate it greatly) will you respond back and I will message you a sync.in to meet me at? [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63637076Thursday, March 01, 2012 1:04 AM GMT

appreciate* [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]
Riderj
#63638277Thursday, March 01, 2012 1:25 AM GMT

Fixed it finally :O [[ 7/10 - Scripting| 4/10 - Building | 10/10 - Confused ]]

    of     1