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
 

Got a problem with your script? I'll try to fix it.

Previous Thread :: Next Thread 
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
12 Aug 2011 08:07 AM
sdfgw,
do you know a way to somehow make a GUI rotate?
I'm making an artificial horizon,and I need to know. :S
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 08:08 AM
ok but srsly

Quiz door? Elaborate on that and I'll try point you in the right direction.

@DARK:

Nope. Unless you feeling like making a meta-GUI generating alogrithm capable of rotation
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 08:09 AM
one way to make realistic airowdynamics is set the speed to increase in increament every .1 seconds then add wind resitins wich subtracts from the speed. make the wind restints increase with the speed. Sorry for bad grammer.
Report Abuse
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
12 Aug 2011 08:13 AM
"Nope. Unless you feeling like making a meta-GUI generating alogrithm capable of rotation"
Or I'll get the rotation of the plane and then change the image of the G.U.I.,that seems easier.
@above
I'll need to make it so if the plane turns too fast it'll that much speed that it'll start to fall.
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
12 Aug 2011 08:15 AM
This script has never worked unless I put a group in it... Its for a GUI and isn't a Local Script.

function Click(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Really red")
end


The only way it works would be like this:

function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(1234) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Really black")
end
end

script.Parent.MouseButton1Click:connect(Click)
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 08:17 AM
This script i can't find a way to make the C0 brick rotate to the target.

local weld = Instance.new("Weld")
weld.Parent = script.Parent
weld.Part0 = script.Parent
weld.Part1 = script.Parent.Parent.Turret
weld.C0 = CFrame.new(0,.45,.5)*CFrame.new(game.Workspace.Turret.Position,game.Workspace.Peices.Factory.Base.Position)
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
12 Aug 2011 08:22 AM
Help for my script?
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 08:24 AM
@DARK:

If all you're looking for is an indicator of direction, one method I used a couple of years back is a sort of compass stylr thing. I had one GUI fixed, and then another small version that rotates around the first one to give a sort of arrow effect.

@Alex:

That's because you forgot the connection line on the first one.
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 08:25 AM
function Click(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = game.Teams["Bright Red Team"].TeamColor
end
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 08:27 AM
@Grand:

mm, try setting the weld's parent after you've configured it.
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 08:30 AM
same result the Part1 doesn't rotate to face the target's position.
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
12 Aug 2011 08:32 AM
Thanks guys!
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 08:41 AM
Does the weld work, just not the way you want it to?
Report Abuse
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
12 Aug 2011 08:48 AM
"If all you're looking for is an indicator of direction"
Not really,I want to show the player the rotation of his plane -->the ground.

Like I want to make him fly in a fog,he can't see crap,so he needs to see if his plane is in the correct position to land,so that he doesn't touch the ground with the roof of the plane
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 08:54 AM
You could still do that, just with a sideview rotation instead of a bird's eye view one.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
12 Aug 2011 03:41 PM
Thunderbump
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 07:24 PM
To make the gui rotate you could use 20 smaller guis that make a line then make them level to the ground.
Report Abuse
jessemccullough9292 is not online. jessemccullough9292
Joined: 10 Jul 2008
Total Posts: 590
12 Aug 2011 10:24 PM
Hey, sorry I cannot tell you where/what the problem is because if I could...I would fix it, but.Anyway here is the Script

Thanks,
JesseMcCullough9292

Name = "jessemccullough9292
C = "Computer V1:"
Player = game.Players:findFirstChild(Name)
function onChatted(msg)
----Ramdom Message----
if msg:lower() == "Computer" then
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = C.."Yes "..Player.Name.."?"
wait(2)
m:Remove()
end
end
Player.Chatted:connect(onChatted)

Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
12 Aug 2011 10:29 PM
a = script.Parent
b = script.Parent.BoolValue
function onClicked()
if b.Value == false then
a:BreakJoints()
b.Value = true
end
if b.Value == true then
a:MakeJoints()
b.Value = false
end
end
a.ClickDetector.MouseClick:connect(onClicked)

The function that breaks the joints works, but when I add the MakeJoints, the whole thing breaks.
Thanks in advance :D
Report Abuse
Drouses is not online. Drouses
Joined: 03 Jul 2010
Total Posts: 86
12 Aug 2011 10:59 PM
Hey, iv only recently been learning scripting so I wasn't surprised when this didn't work. It is made to change the color of a brick from red to yellow. Thank you for any help!

CB = game.Workspace.colorCbrick
function colorChange(brick)
while cancollide do
CB = CB.new("Bright red")
wait(1)
CB = CB.new("Yellow")
wait(1)
return()
end


I know that your looking at this and saying; "Fail Drouses, fail" But I really did just start reading about Lua this week :P
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
12 Aug 2011 11:46 PM
CB = game.Workspace.colorCbrick
function colorChange(brick)
while true do
CB = BrickColor.new(21)
wait(1)
CB = BrickColor.new(24)
wait(1)
end
CB:connect(colorChange)

Firstly, "Yellow" isn't a ROBLOX color. And by "while cancollide" I assume you mean "while cancollide == true", but if you're trying to make it always do something, just do "while true do"
This should work I think.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
12 Aug 2011 11:48 PM
CB = game.Workspace.colorCbrick
while true do
CB.BrickColor = BrickColor.new(21)
wait(1)
CB.BrickColor = BrickColor.new(24)
wait(1)
end

wait, you don't need the function either. And I messed something up too.
This one works, not the last one, sorry 3:

Report Abuse
Drouses is not online. Drouses
Joined: 03 Jul 2010
Total Posts: 86
13 Aug 2011 12:07 AM
Aaahh.... My bro told me that I needed a function no matter what :P
Thanks for the fixup!
Report Abuse
Porygon24 is not online. Porygon24
Joined: 02 Oct 2009
Total Posts: 525
13 Aug 2011 12:15 AM
I want to make a C-Frame Tool Plug in but it wont appear

self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("ModelEdit")
button = toolbar:CreateButton("", "ModelEdit", "move.png")
mouse = self:GetMouse()

button.Click:connect(function()
self:Activate()
local e = Instance.new("Part")
e.Anchored = true
e.formFactor = "Custom"
e.Transparency = 1
e.Name = "ModelSelectionBox"
local h = Instance.new("Handles")
h.Style = "Movement"
h.Color = BrickColor.new("Bright orange")
local box = Instance.new("SelectionBox")
local m = nil
local parts = {}
mouse.Button1Down:connect(function()
if mouse.Target then
m = mouse.Target
repeat m = m.Parent until m.Parent == workspace
e.Parent = workspace
e.Size = m:GetModelSize()
local total = Vector3.new()
if m then
if m:IsA("BasePart") then
table.insert(parts, m)
total = m.Position
else
local a = m
repeat
for _, v in ipairs(a:GetChildren()) do
if v:IsA("BasePart") then
table.insert(parts, v)
total = total + v.Position
else
a = v
end
end
a = nil
until not a
end
end
e.CFrame = CFrame.new(total/#parts)
h.Parent = game.CoreGui
h.Adornee = e
h.Parent = game.CoreGui
box.Adornee = e
else
h.Parent = nil
e.Parent = nil
box.Parent = nil
end
end)
local pDist, pRes = 0, Vector3.new()
h.MouseButton1Down:connect(function()
pDist = 0
pRes = e.Size
end)
h.MouseDrag:connect(function(face, dist)
local new = e.CFrame * CFrame.new(Vector3.FromNormalId(face)*(dist-pDist))
for _, v in ipairs(parts) do
v.CFrame = new:toWorldSpace(e.CFrame:toObjectSpace(v.CFrame))
end
e.CFrame = new
pDist = dist
end)
end)

This isnt my script but someone posted it but i didnt do it right....
Report Abuse
Porygon24 is not online. Porygon24
Joined: 02 Oct 2009
Total Posts: 525
13 Aug 2011 12:22 AM
I made my own move.png logo. The script is in a note pad called ModelEditPlugin.lua or does it need to be named just ModelEdit
Report Abuse
Previous Thread :: Next Thread 
Page 6 of 7Go to page: 1, 2, 3 ... 5, 6, 7 Prev Next
 
 
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