of     1   

lokiie3
#111088540Sunday, August 25, 2013 11:43 PM GMT

I need a script fixed where it gives you a Forcefield and freezes you when you click the GUI function onButtonClick()      a1 =script.Parent.Parent.Parent.Parent.Character if script.Parent.Toggled.Value == 0 then script.Parent.Toggled.Value = 1 f = Instance.new("ForceField") f.Parent = script.Parent.Parent.Parent.Parent.Character else script.Parent.Toggled.Value = 0 a1.Character.ForceField:Remove() end end a1.Torso.Anchored = true end script.Parent.Toggled.Value = 0 a1.Torso.Anchored = false script.Parent.MouseButton1Click:connect(onButtonClick)
ScrewDeath
#111088887Sunday, August 25, 2013 11:46 PM GMT

Looks like you have an extra end ;o
LordOfTheAtoms
#111090668Monday, August 26, 2013 12:02 AM GMT

screw is right
Friaza
#111095523Monday, August 26, 2013 12:42 AM GMT

-----[[Friaza's AFK timer system]]----- --[[PLACE SCRIPT IN STARTERPACK --]} 1. Change "AfkTime" from '15' to the number of seconds that you want the player to be AFK for. 2. "SpamLevel" is how often the AFK timer posts player's AFK status to your "Output". I recommend setting it between 1 (Once) and your AfkTime (Every second.) ]] local AfkTime = 15 local SpamLevel = 5 local Timer = 0 local Player = game.Players.LocalPlayer local mouse = game.Players.LocalPlayer:GetMouse() local Afk = false function NotAfk() Timer = 0 if Afk == true then Afk = false Player.Character.ForceField:remove() Player.Character.Torso.Anchored = false print(Player.Name .." is back.") end end mouse.KeyDown:connect(NotAfk) mouse.KeyUp:connect(NotAfk) mouse.Move:connect(NotAfk) mouse.Button1Down:connect(NotAfk) mouse.Button1Up:connect(NotAfk) mouse.Button2Down:connect(NotAfk) mouse.Button2Up:connect(NotAfk) while wait(math.floor(AfkTime/SpamLevel)) do if Timer < AfkTime then Timer = Timer +AfkTime/SpamLevel print("Player: " ..Player.Name .."'s AFK Timer: " ..Timer .." / " ..AfkTime ..".") elseif (math.floor(Timer) == AfkTime or Timer == AfkTime or Math.cieling(Timer == AfkTime)) and Afk == false then Afk = true ff = Instance.new("ForceField", Player.Character) Player.Character.Torso.Anchored = true print(Player.Name .." is AFK.") end end
Friaza
#111095603Monday, August 26, 2013 12:42 AM GMT

(Put above in a LocalScript in Starterpack.)
lokiie3
#111098105Monday, August 26, 2013 1:03 AM GMT

I don't want it to be timed, just however long they're afk.
Friaza
#111251167Tuesday, August 27, 2013 3:47 PM GMT

It is-By times I mean it waits until they're ACTUALLY AFK and ACTUALLY back so they dont need to press buttons that they won't have time to press if the AFK is urgent.

    of     1