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 » Game Design
Home Search
 

Re: mouse keeps breaking on all my tools?

Previous Thread :: Next Thread 
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
30 Jan 2015 11:30 AM
i have a lot of tools in my game, and each one of them keeps breaking

they used to work
so i blame roblox updates
they are all localscripts inside tools which use the mouse
i will not post all the scripts but i will tell you the error


SO HERE IS THE PROBLEM:
SOMETIMES THEY WORK
SOMETIMES THEY BREAK AND I NEED TO RESET
error is
attempt to index global 'mouse' (a nil value)
and in my gun scripts, roblox updates broke them completely and now they say things like
attempt to index local 'Hit_Player' (a nil value)
and other things like that



BASICALLY THE MOUSE IS BROKEN IN MY GAME AND I NEED HELP
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
30 Jan 2015 11:31 AM
Tell us the part of the script thats broken
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
30 Jan 2015 11:33 AM
alright
i'll give you the lines that are giving the errors mostly, give me a minute


if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then

that one doesn't really matter, it's just the mouse one so ignore that i guess

the mouse also says sometimes "mouse no longer active" or something
here's the function with the mouse error:


function makeGhost(m)
ghost = shelter:clone()
ghost.PrimaryPart=ghost.MainPart
ghost:SetPrimaryPartCFrame((bin.Parent.Torso.CFrame - bin.Parent.Torso.Position) + mouse.Hit.p)
ghost.Parent = game.Workspace.CurrentCamera
ghost:MakeJoints()
local g = ghost:GetChildren()
end
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
30 Jan 2015 11:42 AM
https://twitter.com/RokinRonan/status/561217730167443456/photo/1

mouse no longer active error
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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