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
 

Re: Very Simple Script Fix.

Previous Thread :: Next Thread 
fizzman is not online. fizzman
Joined: 08 Apr 2008
Total Posts: 141
01 Jan 2012 12:41 PM
Hey.
My script is supposed to:

1. Floating pad beneath me
2. God health
3. Small fire in my Torso

The Floating pad part works, but nothing else. Please help!

=======================================================

local name = "fizzman"

local p = Instance.new("Part")
p.Parent = workspace
p.Locked = true
p.BrickColor = BrickColor.new("White")
p.BrickColor = BrickColor.new(1)
p.Size = Vector3.new(10, 1.8, 10)
p.Anchored = true
local m = Instance.new("CylinderMesh")
m.Scale = Vector3.new(2, 1, 2)
m.Parent = p
while true do
p.CFrame = CFrame.new(game.Players:findFirstChild(name).Character.Torso.CFrame.x, game.Players:findFirstChild(name).Character.Torso.CFrame.y - 3.5, game.Players:findFirstChild(name).Character.Torso.CFrame.z)
wait()
end
f = Instance.new("Fire")
f.Parent = Workspace.fizzman.Torso
f.Size = 1
f.Heat = math.huge
f.Enabled = true
f.Color = Color3.new(0,0,1)
game.Workspace.fizzman.Humanoid.MaxHealth = math.huge

=======================================================

Thanks for any help.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
01 Jan 2012 12:46 PM
Well, Color3.new is not a Vector3 value, so it should be:

Color3.new(0/255; 0/255; 1/255)

Also, the last line, you should also do it with your own health. Not just MaxHealth.


Report Abuse
fizzman is not online. fizzman
Joined: 08 Apr 2008
Total Posts: 141
01 Jan 2012 12:48 PM
Uhhhh...
So...
What do I change?
Could you post the edited script please?
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
01 Jan 2012 12:52 PM
Nothing much.
Just some simple things.
Not enough to post it.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
01 Jan 2012 01:01 PM
Are you sure it's "Color3.new(0/255; 0/255; 1/255)"?

I never seen a value with "/" in it. Must of never checked it out... still don't see how I could miss something like that.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
01 Jan 2012 01:09 PM
I'm prett sure color3 is like this:

Color3.new(0,0,0)

Christmas? BAH HUMBUG!
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