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 » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
18 Jun 2013 12:32 AM
--do damage to any humanoids hit
local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid:TakeDamage(80)
if humanoid.Health < 1 then
local p = game.Players[script.Parent.Parent.Name]
local k = game.Players[humanoid.Parent.Name]
if k.leaderstats.Reuptation.Value == 0 then
p.leadersats.Reuptation.Value = p.leadersats.Reuptation.Value - 10
elseif k.leaderstats.Reuptation.Value > 0 and k.leaderstats.Reuptation.Value < 150 then
p.leadersats.Reuptation.Value = p.leadersats.Reuptation.Value - 50
elseif k.leaderstats.Reuptation.Value > 149 then
p.leadersats.Reuptation.Value = p.leadersats.Reuptation.Value - 200
elseif k.leaderstats.Reuptation.Value < 0 and k.leaderstats.Reuptation.Value > -150 then
p.leadersats.Reuptation.Value = p.leadersats.Reuptation.Value + 50
elseif k.leaderstats.Reuptation.Value < -150 then
p.leadersats.Reuptation.Value = p.leadersats.Reuptation.Value + 75
end
end

I edited this in the raycast gun script from the wiki. It's just a function. It won't work. No output found in server mode.
Report Abuse
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
18 Jun 2013 12:34 AM
mm.... there is no function... what defines "hit"?
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
18 Jun 2013 12:35 AM
local hit, position = game.Workspace:FindPartOnRay(ray, user)
user = tool.Parent

Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
18 Jun 2013 12:54 AM
[ Content Deleted ]
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
18 Jun 2013 01:00 AM
local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
18 Jun 2013 01:37 AM
[ Content Deleted ]
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
18 Jun 2013 02:00 AM
I cahnged it to ~= nil and it still doesnt work.

i can smell you
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
18 Jun 2013 02:00 AM
"local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")"

I don't think you could set a variable like that
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
18 Jun 2013 02:04 AM
also, you didn't quite define "hit"

http://wiki.roblox.com/index.php/Hit
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
18 Jun 2013 02:08 AM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
18 Jun 2013 02:09 AM
[ Content Deleted ]
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
18 Jun 2013 02:11 AM
ouch.
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
18 Jun 2013 02:20 AM
Everthing is the same as the raycasting gun on the wiki
Except for the part i changed.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
18 Jun 2013 02:22 AM
Ouch @Baheeg from oysi
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
18 Jun 2013 02:28 AM
[ Content Deleted ]
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
18 Jun 2013 02:31 AM
Its not helping if you dont know how ;c
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
18 Jun 2013 02:37 AM
[ Content Deleted ]
Report Abuse
DaneelOlivaw is online. DaneelOlivaw
Joined: 14 Apr 2012
Total Posts: 661
18 Jun 2013 05:22 AM
Out of curiosity, why won't testing with a pseudoserver (Start Server or Start Player test options) work versus an actual server environment?

I don't want to hijack the thread, but this struck me as odd.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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