11 Views
1 Executions
Giant T-Rex skeleton/ Alternative Primadon ui control panel
Universal Script 📌
36 minutes ago
Reviewed by QueueSpeedDemonPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Clientsided if execute with like delta serversided if executed if command bar or serverside
local Players=game:GetService("Players")local AssetService=game:GetService("AssetService")local RunService=game:GetService("RunService")local UIS=game:GetService("UserInputService")local player=Players.LocalPlayer local BUNDLE_ID=458 local GIANT_SCALE=14 local WALK_ANIM_SPEED=0.35 local state={destroyParts=true,splitParts=true,destructiveWalk=false,destroyedAnchored=false,maxAnchoredMass=0}local brokenParts={}local function createRexGui()local pg=player:WaitForChild("PlayerGui")local ex=pg:FindFirstChild("RexControlGui")if ex then ex:Destroy()end local sg=Instance.new("ScreenGui")sg.Name="RexControlGui"sg.ResetOnSpawn=false sg.Parent=pg local mf=Instance.new("Frame")mf.Name="MainFrame"mf.Size=UDim2.new(0,165,0,261)mf.Position=UDim2.new(0,15,1,-15)mf.AnchorPoint=Vector2.new(0,1)mf.BackgroundColor3=Color3.fromRGB(28,30,34)mf.BackgroundTransparency=0 mf.BorderSizePixel=0 mf.Active=true mf.Parent=sg local dg,di,ds,sp mf.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dg=true ds=i.Position sp=mf.Position i.Changed:Connect(function()if i.UserInputState==Enum.UserInputState.End then dg=false end end)end end)mf.InputChanged:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseMovement or i.UserInputType==Enum.UserInputType.Touch then di=i end end)UIS.InputChanged:Connect(function(i)if i==di and dg then local d=i.Position-ds mf.Position=UDim2.new(sp.X.Scale,sp.X.Offset+d.X,sp.Y.Scale,sp.Y.Offset+d.Y)end end)local fc=Instance.new("UICorner")fc.CornerRadius=UDim.new(0,8)fc.Parent=mf local pd=Instance.new("UIPadding")pd.PaddingTop=UDim.new(0,6)pd.PaddingBottom=UDim.new(0,6)pd.PaddingLeft=UDim.new(0,8)pd.PaddingRight=UDim.new(0,8)pd.Parent=mf local ll=Instance.new("UIListLayout")ll.SortOrder=Enum.SortOrder.LayoutOrder ll.Padding=UDim.new(0,4)ll.HorizontalAlignment=Enum.HorizontalAlignment.Center ll.Parent=mf local tl=Instance.new("TextLabel")tl.Name="Title"tl.Size=UDim2.new(1,0,0,18)tl.BackgroundTransparency=1 tl.Text="Rex"tl.TextColor3=Color3.fromRGB(240,240,240)tl.Font=Enum.Font.SourceSansBold tl.TextSize=16 tl.LayoutOrder=1 tl.Parent=mf local function mb(t,o)local b=Instance.new("TextButton")b.Size=UDim2.new(1,0,0,25)b.BackgroundColor3=Color3.fromRGB(16,134,212)b.Text=t b.TextColor3=Color3.fromRGB(255,255,255)b.Font=Enum.Font.SourceSans b.TextSize=15 b.AutoButtonColor=true b.LayoutOrder=o local c=Instance.new("UICorner")c.CornerRadius=UDim.new(0,6)c.Parent=b b.Parent=mf return b end local rb=mb("Roar",2)local cb=mb("Clean Parts",3)local dpb=mb("Destroy Parts: true",4)local spb=mb("Split Parts: true",5)local dwb=mb("Destructive Walk: false",6)local dab=mb("Destroyed Anchored: false",7)local ml=Instance.new("TextLabel")ml.Size=UDim2.new(1,0,0,16)ml.BackgroundTransparency=1 ml.Text="Max Anchored Mass"ml.TextColor3=Color3.fromRGB(220,220,220)ml.Font=Enum.Font.SourceSans ml.TextSize=14 ml.LayoutOrder=8 ml.Parent=mf local mbx=Instance.new("TextBox")mbx.Size=UDim2.new(1,0,0,24)mbx.BackgroundColor3=Color3.fromRGB(18,20,23)mbx.Text="0"mbx.PlaceholderText="0"mbx.TextColor3=Color3.fromRGB(255,255,255)mbx.Font=Enum.Font.SourceSans mbx.TextSize=15 mbx.ClearTextOnFocus=false mbx.LayoutOrder=9 local bc=Instance.new("UICorner")bc.CornerRadius=UDim.new(0,6)bc.Parent=mbx mbx.Parent=mf local rs=Instance.new("Sound")rs.Name="RexRoarSound"rs.SoundId="rbxassetid://137419707857339"rs.Volume=10 rs.Parent=sg rb.MouseButton1Click:Connect(function()rs:Play()end)cb.MouseButton1Click:Connect(function()for p,_ in pairs(brokenParts)do if p and p.Parent then p:Destroy()end end table.clear(brokenParts)end)dpb.MouseButton1Click:Connect(function()state.destroyParts=not state.destroyParts dpb.Text="Destroy Parts: "..tostring(state.destroyParts)end)spb.MouseButton1Click:Connect(function()state.splitParts=not state.splitParts spb.Text="Split Parts: "..tostring(state.splitParts)end)dwb.MouseButton1Click:Connect(function()state.destructiveWalk=not state.destructiveWalk dwb.Text="Destructive Walk: "..tostring(state.destructiveWalk)end)dab.MouseButton1Click:Connect(function()state.destroyedAnchored=not state.destroyedAnchored dab.Text="Destroyed Anchored: "..tostring(state.destroyedAnchored)end)mbx.FocusLost:Connect(function()local n=tonumber(mbx.Text)if n then state.maxAnchoredMass=n else mbx.Text=tostring(state.maxAnchoredMass)end end)end local function processHitPart(h,rm)if not state.destroyParts then return end if not h or not h:IsA("BasePart")then return end if h:IsDescendantOf(rm)then return end if h.Name=="Baseplate"or h:IsA("Terrain")then return end if h.Anchored then if not state.destroyedAnchored then return end if state.maxAnchoredMass>0 and h:GetMass()>state.maxAnchoredMass then return end h.Anchored=false end if state.splitParts then h:BreakJoints()end brokenParts[h]=true end local function applyClientTRex()local ok,bd=pcall(function()return AssetService:GetBundleDetailsAsync(BUNDLE_ID)end)if not ok or not bd then warn("Failed to load T-Rex Skeleton bundle details.")return end local desc=Instance.new("HumanoidDescription")local acc={}for _,it in ipairs(bd.Items)do if it.Type=="Asset"then local at=it.AssetType if at=="Head"or at=="DynamicHead"then desc.Head=it.Id elseif at=="Torso"then desc.Torso=it.Id elseif at=="LeftArm"then desc.LeftArm=it.Id elseif at=="RightArm"then desc.RightArm=it.Id elseif at=="LeftLeg"then desc.LeftLeg=it.Id elseif at=="RightLeg"then desc.RightLeg=it.Id elseif string.find(at,"Accessory")then local cn=string.gsub(at,"Accessory","")local et=Enum.AccessoryType[cn]or Enum.AccessoryType.Waist table.insert(acc,{AssetId=it.Id,AccessoryType=et,IsLayered=false})end end end desc:SetAccessories(acc,true)desc.HeightScale=GIANT_SCALE desc.WidthScale=GIANT_SCALE desc.DepthScale=GIANT_SCALE desc.HeadScale=GIANT_SCALE local nr=Players:CreateHumanoidModelFromDescriptionAsync(desc,Enum.HumanoidRigType.R15)nr.Name=player.Name local oc=player.Character or player.CharacterAdded:Wait()local ohrp=oc:WaitForChild("HumanoidRootPart")local nhrp=nr:WaitForChild("HumanoidRootPart")nhrp.CFrame=ohrp.CFrame player.Character=nr nr.Parent=workspace oc:Destroy()local hum=nr:WaitForChild("Humanoid")hum.WalkSpeed=48 hum.UseJumpPower=true hum.JumpPower=90 player.CameraMaxZoomDistance=400 local cam=workspace.CurrentCamera if cam then cam.CameraSubject=hum end local anim=hum:FindFirstChildOfClass("Animator")or Instance.new("Animator",hum)local ia=Instance.new("Animation")ia.AnimationId="rbxassetid://507766388"local wa=Instance.new("Animation")wa.AnimationId="rbxassetid://507777826"local itk=anim:LoadAnimation(ia)itk.Priority=Enum.AnimationPriority.Idle itk.Looped=true itk:Play()local wtk=anim:LoadAnimation(wa)wtk.Priority=Enum.AnimationPriority.Movement wtk.Looped=true hum.Running:Connect(function(sp)if sp>1 then if not wtk.IsPlaying then wtk:Play(0.2)end wtk:AdjustSpeed(WALK_ANIM_SPEED)else if wtk.IsPlaying then wtk:Stop(0.2)end end end)for _,p in ipairs(nr:GetDescendants())do if p:IsA("BasePart")then p.Touched:Connect(function(h)if state.destructiveWalk then processHitPart(h,nr)end end)end end local op=OverlapParams.new()op.FilterDescendantsInstances={nr}op.FilterType=Enum.RaycastFilterType.Exclude RunService.Heartbeat:Connect(function()if not nr or not nr.Parent then return end if state.destructiveWalk and hum.MoveDirection.Magnitude>0 then local fp=nhrp.Position-Vector3.new(0,nhrp.Size.Y*1.5,0)local np=workspace:GetPartBoundsInRadius(fp,24,op)for _,h in ipairs(np)do processHitPart(h,nr)end end end)end createRexGui()applyClientTRex()
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!