generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: FilteringEnabled

Previous Thread :: Next Thread 
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
02 Feb 2015 08:17 AM
How could this work with FilteringEnabled?

Debounce = false
if LaserVal.Value == true then
local Humanoid = Tool.Parent:FindFirstChild("Humanoid")
if Handle and Humanoid and Humanoid.Health > 0 then
if (Handle.Position - Humanoid.TargetPoint).magnitude <= 1000 then
local Part = Instance.new("Part")
Part.Anchored = true
Part.CanCollide = false
Part.formFactor = "Symmetric"
Part.TopSurface = 0
Part.BottomSurface = 0
Part.BrickColor = BrickColor:random()
Part.Transparency = 0.4
Part.Name = "Laser"
Part.Locked = true
Part.Size = Vector3.new(1,1,(Humanoid.TargetPoint - Handle.Position).magnitude)
Part.CFrame = CFrame.new(((Handle.Position + Humanoid.TargetPoint)/2) + 1 * (Humanoid.TargetPoint - Handle.Position).unit, Humanoid.TargetPoint)

local Mesh = Instance.new("BlockMesh")
Mesh.Scale = Vector3.new(0.25,0.25,1)
Mesh.Parent = Part

Part.Parent = workspace
game:GetService("Debris"):AddItem(Part, 1.5)

Part.Touched:connect(function(Hit)
local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
if Hit.Parent and Humanoid and Humanoid.Health > 0 and Humanoid.Parent ~= Tool.Parent then
tagHuman(Humanoid)
Humanoid:TakeDamage(100)
Handle.Laser1:Play()
end
end)

if Debounce == false then
Debounce = true
Handle.Transparency = 1
Handle.Laser2:Play()
for v=1, 10 do
Part.Transparency = 0.1 * v
wait(0.01)
end
wait(1)
Debounce = false
Handle.Transparency = 0
end
Part:Destroy()
end
end
Report Abuse
earthyreuben is not online. earthyreuben
Joined: 17 Jan 2010
Total Posts: 669
02 Feb 2015 08:35 AM
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
02 Feb 2015 08:40 AM
Using a RemoteEvent and it still doesn't work.

function onRemote(player, func, ...)
if player ~= getPlayer() then return end

if func == "LeftDown" then
onLeftDown(...)
end
end

Remote.OnServerEvent:connect(onRemote)
Report Abuse
Rellica is not online. Rellica
Joined: 11 May 2013
Total Posts: 955
02 Feb 2015 08:58 AM
A Client Event will be fired in a Server Script and handled in a local script. In this example the server script will create the RemoteEvent (to avoid issues if you are using FilteringEnabled) and then wait 5 seconds before firing:

wait(5)
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
02 Feb 2015 02:48 PM
That doesn't seem right. I want this to fire right away...
Report Abuse
Ruinable is not online. Ruinable
Joined: 14 Sep 2014
Total Posts: 8903
02 Feb 2015 02:50 PM
Stop reposting this and learn the basics before trying something this advanced.
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
02 Feb 2015 02:52 PM
I didn't come here for someone to talk to me like their my daddy. I'm asking for help. Just ignore this post if you got a problem with that.
Report Abuse
Ruinable is not online. Ruinable
Joined: 14 Sep 2014
Total Posts: 8903
02 Feb 2015 02:53 PM
No, you're screwing yourself over you don't even know what fe is, you think it stops exploits, that's it. And it doesn't. It stops some, but not all.
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
02 Feb 2015 02:55 PM
It's a better way for the client and the server to communicate.
Report Abuse
Ruinable is not online. Ruinable
Joined: 14 Sep 2014
Total Posts: 8903
02 Feb 2015 03:36 PM
It makes it harder for them to communicate dimwit.

Ruinable, Director of the Aegis Accord.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image